/* ========================= */
/* Editorial Dossier Layout  */
/* ========================= */

.dossier-content {
  padding: 8rem var(--global-padding) 6rem var(--global-padding);
  max-width: 1600px;
  margin: 0 auto;
}

/* ========================= */
/* Hero Section              */
/* ========================= */

.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.mono-kicker {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.85rem;
  color: var(--text-color); /* REMOVED ACCENT COLOR */
  letter-spacing: 0.15em;
}

/* ========================= */
/* Dossier Download Action   */
/* ========================= */

.dossier-download-btn {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color);
  background: transparent;
  border: none;
  padding: 0; /* Strips default button padding */
  cursor: pointer;
  letter-spacing: 0.15em; /* Matches the mono-kicker spacing exactly */
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Sharp, minimal interaction */
.dossier-download-btn:hover {
  color: var(--accent-color); /* Turns Terracotta to signal clickability */
  transform: translateY(-2px); /* Very subtle tactile lift */
}

/* Hides it from the actual printout */
@media print {
  .dossier-download-btn {
    display: none !important;
  }
}


.page-hero {
  font-size: clamp(4rem, 12vw, 12rem); 
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text-color);
  margin: 0; 
}

/* ========================= */
/* Profile Header Styling    */
/* ========================= */

.profile-header {
  display: flex;
  align-items: center; /* Aligns the image perfectly with the text */
  gap: 2rem; /* Breathing room between image and name */
}

.profile-img {
  width: 180px; 
  height: 180px;
  object-fit: cover;
  /* SHAPE CONTROL: */
  border-radius: 0; /* Keep it 0 for a stark square. Change to 50% for a perfect circle. */
}


.mono-intro {
  font-family: 'iA Writer Duospace', monospace; /* UNIFIED FONT */
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-color);
  opacity: 0.8;
  max-width: 700px;
}

/* ========================= */
/* The Brutalist Grid        */
/* ========================= */

.dossier-grid {
  display: flex;
  flex-direction: column;
}

.dossier-row {
  display: grid;
  grid-template-columns: 350px 1fr;
  border-top: 2px solid rgba(26, 26, 26, 0.2); 
  padding: 4rem 0;
}

.dossier-label {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-color); /* REMOVED ACCENT COLOR */
  letter-spacing: 0.1em;
}

.dossier-items {
  display: flex;
  flex-direction: column;
  gap: 4rem; 
}

.dossier-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.dossier-meta {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

.dossier-meta-del {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

.dossier-role {
  font-family: 'SF Pro Display', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}



/* Tools & Systems Sub-Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.tool-category {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-color); /* REMOVED ACCENT COLOR */
  margin-bottom: 0.5rem;
  opacity: 0.5;
}



/* ========================= */
/* Print Styles (Cmd + P)    */
/* ========================= */

/* ========================= */
/* QR Code System Stamp      */
/* ========================= */

/* Strictly hidden on digital screens */
.qr-wrapper {
  display: none !important; 
}






/* ========================= */
/* Print Styles (Cmd + P)    */
/* ========================= */

@media print {
  /* 1. Precision Paper Margins (0.8cm is the golden ratio for A4) */
    /* 1. Precision Paper Margins */
  @page { 
    margin-top: 0.3cm; /* Severely cuts the top margin */
    margin-bottom: 0.8cm;
    margin-left: 0.8cm; 
    margin-right: 0.8cm; 
  }

  
  /* 2. Kill animations and force visibility */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* 3. Allow infinite scroll for printer & hide UI */
  html, body, main { 
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    background: white !important; 
    color: black !important; 
    background-image: none !important;
  }
  
  .navbar, .bottom-left-footer, #crosshair-cursor, .back-to-top, .index-overlay, .print-hide { 
    display: none !important; 
  }
  
  /* 4. Overwrite fluid padding */
    /* 4. Completely eradicate all top spacing on wrappers */
  body, main, .dossier-content, .intro-section, .hero-content-wrapper, .profile-header { 
    padding-top: 0 !important; 
    margin-top: 0 !important; 
    max-width: 100% !important; 
  }

  /* 5. Precision Hero Section */
  .hero-content-wrapper {
    margin-bottom: 1.5rem !important; 
    gap: 0.6rem !important;
  }
  
    .page-hero {
    font-size: 2.8rem !important; 
    line-height: 0.8 !important; /* Tightens the invisible box around the text */
    margin-top: -0.2rem !important; /* Physically yanks the text upward */
    margin-bottom: 0 !important;
  }

  .profile-header {
    gap: 1rem !important; 
  }

  /* Keeps the image looking intentional but saves vertical space */
  .profile-img {
    width: 140px !important; 
    height: 140px !important;
    filter: none !important; 
  }
  
  .mono-intro {
    font-size: 0.85rem !important; 
    line-height: 1.35 !important; /* The golden middle-ground for legibility */
    max-width: 100% !important; 
  }

  /* 6. Precision Brutalist Grid */
   .dossier-row { 
    border-top: 2px solid black !important; 
    padding: 1.2rem 0 !important; 
    grid-template-columns: 200px 1fr !important; 
    gap: 1.2rem !important;
    /* CHANGED: Allow the row to cross pages naturally */
    page-break-inside: auto !important;
    break-inside: auto !important; 
  }
  
  /* Fixes the Chrome/Safari Flexbox Printer Bug */
  .dossier-items {
    display: block !important; 
  }
  
  .dossier-item {
    display: block !important; 
    page-break-inside: avoid !important; /* Now the printer will actually listen to this! */
    break-inside: avoid !important; 
    margin-bottom: 1.2rem !important; /* Replaces the old 1.2rem gap */
  }
  
  /* Recreates the 0.3rem gap between the job title and description */
  .dossier-item > * {
    margin-bottom: 0.3rem !important;
  }
  
  /* Removes the margin from the last item so spacing stays mathematically perfect */
  .dossier-item > *:last-child {
    margin-bottom: 0 !important;
  }

  /* 7. Typography Scaling for Paper */
  .dossier-role {
    font-size: 1.1rem !important; 
  }

  .dossier-meta, .dossier-meta-del, .dossier-label {
    font-size: 0.75rem !important; 
    line-height: 1.35 !important; 
  }
  
  /* 8. Tools Grid */
  .tools-grid {
    gap: 0.8rem !important;
    grid-template-columns: repeat(2, 1fr) !important; 
  }

  /* 9. Color Adjustments */
  .dossier-label, .dossier-company, .accent-mark { 
    color: black !important; 
  }
  .hide-on-print {
    display: none !important;
  }

  /* 10. Print-Only QR Code Activation */
  .qr-wrapper {
    display: flex !important; 
    flex-direction: column;
    gap: 0.3rem;
    max-width: 100px !important; 
    margin-top: 1.2rem !important; 
  }

  .qr-image {
    width: 100%;
    height: auto;
    border: 1px solid black !important; 
    padding: 0.2rem; 
    background-color: white !important; 
  }

  .qr-caption {
    font-family: 'iA Writer Duospace', monospace;
    font-size: 0.5rem !important; 
    color: black !important;
    letter-spacing: 0.05em;
    text-align: center;
  }

  /* 11. Print Pagination & Orphan Control */
  .dossier-item, .tools-grid {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .dossier-role, h3 {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  p, li {
    orphans: 3; 
    widows: 3;  
  }
}










/* ========================= */
/* Mobile Adjustments        */
/* ========================= */

@media (max-width: 900px) {
  .dossier-row {
    grid-template-columns: 1fr; 
    gap: 2rem;
    padding: 3rem 0;
  }
  .dossier-items { gap: 3rem; }
}






/* ========================= */
/* Translucent Navbar        */
/* ========================= */

.navbar {
  position: fixed; 
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem var(--global-padding);
  background: rgba(244, 244, 240, 0.7); 
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  z-index: 1000;
  border-bottom: 1px solid rgba(26, 26, 26, 0.05);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
}

/* ========================= */
/* Navbar Menu Toggle        */
/* ========================= */

.menu-btn {
  font-family: 'iA Writer Duospace', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color);
  background: transparent;
  border: none;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  opacity: 0.8;
  padding: 0; /* Resets default button padding */
}

.menu-btn:hover {
  color: var(--accent-color);
  opacity: 1;
}

/* ========================= */
/* Full-Screen Index Overlay */
/* ========================= */

.index-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Premium paper background */
  background-color: var(--bg-color);
  background-image: url("https://www.transparenttextures.com/patterns/p6.png");
  background-repeat: repeat;
  background-attachment: fixed;
  background-blend-mode: multiply;
  
  /* Sits just underneath the z-index: 1000 navbar */
  z-index: 999; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--global-padding);
  
  /* Slides up and hides by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.45, 0, 0.55, 1), visibility 0.4s;
}

/* The Active State when toggled */
.index-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.overlay-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.overlay-label {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  display: block;
}

/* ========================= */
/* Massive Typographic Links */
/* ========================= */

.massive-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.giant-link {
  font-family: 'SF Pro Display', sans-serif;
  font-size: clamp(3.5rem, 8vw, 8rem); 
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-color);
  text-decoration: none;
  /* Smoothed out to exactly match your Writing page hover timings */
  transition: opacity 0.4s ease, color 0.4s ease;
  width: max-content;
}

/* Focus Hover Effect (Smooth Fade, No Movement) */
.massive-nav:hover .giant-link {
  opacity: 0.3; /* Gently dims the un-hovered links */
}

.massive-nav .giant-link:hover {
  opacity: 1;
  color: var(--accent-color);
  /* The jarring transform: translateX has been removed */
}


/* Overlay Utility Footer */
.overlay-footer {
  margin-top: 5rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(26, 26, 26, 0.2);
  padding-top: 2rem;
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.9rem;
}

.overlay-footer a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.overlay-footer a:hover {
  color: var(--accent-color);
}


/* 1. The Default State */
.linkcv {
  font-size: 2rem;
  font-family: 'iA Writer Duospace';
  display: inline-block;
  margin-left: 0.3rem;
  transition: transform 0.3s cubic-bezier(0.45, 0, 0.55, 1);
}

/* 2. The Hover State */
/* When the 'a' tag is hovered, move the '.arrow' inside it */
a:hover .linkcv {
  transform: translate(1px, -1px); /* Kinetic nudge */
}




