/* ============================================================
   lateshift.tech — styles.css
   Dark cinematic resume site for Drew Johnson
   ============================================================ */

/* ── RESET & TOKENS ────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:        #060608;
  --bg2:       #0c0c10;
  --surface:   #121218;
  --border:    rgba(255, 255, 255, 0.06);
  --text:      #cdd5e0;
  --text-dim:  rgba(205, 213, 224, 0.42);
  --cyan:      #38c9b0;
  --cyan-dim:  rgba(56, 201, 176, 0.18);
  --cyan-glow: rgba(56, 201, 176, 0.07);
  --white:     #eef2f7;

  --font-display: 'Cormorant Garamond', serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --nav-height: 68px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 160px;
  opacity: 0.026;
  pointer-events: none;
  z-index: 9999;
  animation: grain 10s steps(10) infinite;
}

@keyframes grain {
  0%,  100% { transform: translate(0,    0);   }
  10%        { transform: translate(-1%, -2%);  }
  20%        { transform: translate( 2%,  1%);  }
  30%        { transform: translate(-2%,  2%);  }
  40%        { transform: translate( 1%, -1%);  }
  50%        { transform: translate(-1%,  2%);  }
  60%        { transform: translate( 2%, -2%);  }
  70%        { transform: translate(-1%,  1%);  }
  80%        { transform: translate( 1%,  2%);  }
  90%        { transform: translate(-2%, -1%);  }
}

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  transition: background 0.4s, border-color 0.4s;
}

nav.scrolled {
  background: rgba(6, 6, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  text-decoration: none;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

.logo-word em {
  font-style: italic;
  color: var(--cyan);
}

.logo-tld {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--cyan);
  opacity: 0.65;
  margin-left: 2px;
  align-self: flex-end;
  margin-bottom: 2px;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--cyan); }

/* Print/Download button */
.nav-dl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 10px 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-dl:hover { background: #4fdfc5; }

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  overflow: hidden;
}

/* Letterbox top bar */
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: #000;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%,   rgba(56, 201, 176, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at   0% 100%, rgba(56, 201, 176, 0.03) 0%, transparent 55%),
    linear-gradient(170deg, #08080d 0%, #060608 100%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 80% at 100% 0%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 100% 0%, black 0%, transparent 65%);
  opacity: 0.45;
}

/* Hero stamp (top-right) */
.hero-stamp {
  position: absolute;
  top: 96px; right: 60px;
  z-index: 3;
  text-align: right;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.8s;
}

.stamp-location {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stamp-avail {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,  100% { box-shadow: 0 0 0 0   rgba(56, 201, 176, 0.6); }
  50%        { box-shadow: 0 0 0 6px rgba(56, 201, 176, 0);   }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.3s;
}

.hero-meta::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.6;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 300;
  line-height: 0.88;
  color: var(--white);
  letter-spacing: -0.025em;
  opacity: 0;
  animation: fadeUp 1.1s ease forwards 0.5s;
}

.hero-name em {
  display: block;
  font-style: italic;
  color: var(--cyan);
}

.hero-summary {
  margin-top: 28px;
  max-width: 720px;
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  line-height: 2;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.9s;
}

.hero-summary strong {
  color: var(--text);
  font-weight: 400;
}

.hero-chips {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.1s;
}

.chip {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  padding: 6px 14px;
}

.hero-links {
  margin-top: 44px;
  display: flex;
  gap: 28px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.3s;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: #4fdfc5;
  transform: translateY(-2px);
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(205, 213, 224, 0.18);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(205, 213, 224, 0.45);
}

/* ── MARQUEE ───────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg2);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee-dot { color: var(--cyan); }

@keyframes marquee {
  from { transform: translateX(0);    }
  to   { transform: translateX(-50%); }
}

/* ── RESUME LAYOUT ─────────────────────────────────────────── */
.resume-body {
  display: grid;
  grid-template-columns: 270px 1fr;
}

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 60px 32px;
  position: sticky;
  top: var(--nav-height);
  height: fit-content;
  align-self: start;
}

.sidebar-section { margin-bottom: 48px; }
.sidebar-section:last-child { margin-bottom: 0; }

.sidebar-label {
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cyan-dim);
}

/* Contact list */
.contact-list { list-style: none; }

.contact-list li {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-list li .lbl {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.5;
}

.contact-list li a {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.63rem;
  transition: color 0.3s;
}

.contact-list li a:hover { color: var(--white); }

.contact-list li .val {
  color: var(--text);
  font-size: 0.63rem;
}

/* Skill bars */
.skills-list { list-style: none; }

.skills-list li { margin-bottom: 14px; }

.skills-list li .sname {
  font-size: 0.63rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: block;
}

.skill-bar {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cert / education list */
.cert-list { list-style: none; }

.cert-list li {
  font-size: 0.62rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 16px;
  padding-left: 14px;
  position: relative;
}

.cert-list li::before {
  content: '//';
  position: absolute;
  left: 0;
  color: var(--cyan);
  opacity: 0.55;
  font-size: 0.55rem;
}

.cert-list li strong {
  color: var(--text);
  font-weight: 400;
  display: block;
  margin-bottom: 2px;
}

/* ── MAIN CONTENT ──────────────────────────────────────────── */
.main-content { padding: 60px 60px; }

.resume-section { margin-bottom: 80px; }
.resume-section:last-child { margin-bottom: 0; }

.rs-label {
  font-size: 0.57rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rs-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cyan-dim);
}

/* ── COMPANY GROUP CARDS ───────────────────────────────────── */
.company-group {
  border: 1px solid var(--border);
  margin-bottom: 40px;
  background: var(--bg2);
}

.company-group:last-child { margin-bottom: 0; }

.company-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: var(--surface);
}

.company-header-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.company-header-meta {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-align: right;
}

.company-roles { padding: 0 28px 28px; }

.role-block { padding-top: 32px; }

.role-block + .role-block {
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

/* Role sub-elements */
.tl-period {
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-badge {
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 2px 8px;
}

.tl-role {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 5px;
}

.tl-bullets {
  list-style: none;
  margin-top: 14px;
}

.tl-bullets li {
  font-size: 0.67rem;
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 9px;
  padding-left: 18px;
  position: relative;
}

.tl-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  opacity: 0.65;
  font-size: 0.6rem;
}

.tl-bullets li strong {
  color: var(--text);
  font-weight: 400;
}

.tl-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  padding: 4px 10px;
}

/* ── ACCOUNTS GRID ─────────────────────────────────────────── */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.account-card {
  background: var(--bg2);
  padding: 34px 30px;
  transition: background 0.35s;
  position: relative;
  overflow: hidden;
}

.account-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.account-card:hover { background: var(--surface); }
.account-card:hover::after { transform: scaleX(1); }

.account-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
}

.account-scope {
  font-size: 0.6rem;
  color: var(--cyan);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.account-desc {
  font-size: 0.63rem;
  color: var(--text-dim);
  line-height: 1.85;
}

/* ── COMPETENCIES GRID ─────────────────────────────────────── */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.comp-cat {
  background: var(--bg2);
  padding: 30px 28px;
  transition: background 0.3s;
}

.comp-cat:hover { background: var(--surface); }

.comp-cat-title {
  font-size: 0.57rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.comp-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.comp-item {
  font-size: 0.6rem;
  color: var(--text-dim);
  padding: 5px 10px;
  border: 1px solid var(--border);
  transition: color 0.3s, border-color 0.3s;
}

.comp-item:hover {
  color: var(--cyan);
  border-color: var(--cyan-dim);
}

/* ── CONTACT SECTION ───────────────────────────────────────── */
.contact-block { max-width: 540px; }

.contact-block p {
  font-size: 0.73rem;
  line-height: 2;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.contact-block p strong {
  color: var(--text);
  font-weight: 400;
}

.contact-email-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--cyan-dim);
  padding-bottom: 3px;
  display: inline-block;
  transition: color 0.3s, border-color 0.3s;
}

.contact-email-link:hover {
  color: var(--white);
  border-color: rgba(205, 213, 224, 0.3);
}

.social-row {
  margin-top: 36px;
  display: flex;
  gap: 36px;
}

.social-row a {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.social-row a:hover { color: var(--cyan); }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 26px 60px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: rgba(56, 201, 176, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── PRINT STYLES ──────────────────────────────────────────── */
@media print {
  body::before,
  nav,
  .marquee-wrap,
  .hero-stamp,
  .hero-links,
  .hero-chips,
  .nav-dl { display: none !important; }

  #hero {
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .hero-name { font-size: 4rem; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .resume-body { display: block; }

  .sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px;
  }

  footer { padding: 16px 32px; }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .comp-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .resume-body { grid-template-columns: 1fr; }

  .sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 48px 28px;
  }

  .accounts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links, .nav-dl { display: none; }

  #hero,
  .main-content { padding-left: 24px; padding-right: 24px; }

  .hero-stamp { display: none; }
  .hero-name  { font-size: 4rem; }

  .company-header {
    flex-direction: column;
    gap: 4px;
  }

  footer { padding: 20px 24px; }
}

@media (max-width: 520px) {
  .comp-grid { grid-template-columns: 1fr; }
  .social-row { flex-direction: column; gap: 16px; }
}
