/* =========================================
   1. Resets & View Transitions
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

::selection,
::-moz-selection {
  background-color: var(--accent-color);
  color: var(--bg-primary);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 2s;
}

body.post::view-transition-old(root),
body.post::view-transition-new(root) {
  animation-timing-function: ease-in-out;
}

body.post::view-transition-old(root) {
  animation-name: slide-out-down;
}

body.post::view-transition-new(root) {
  animation-name: slide-in-down;
}

@keyframes slide-out-down {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(100%); }
}

@keyframes slide-in-down {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes swingCard {
  0% { transform: rotate3d(0, 1, 0, 0deg); }
  5% { transform: rotate3d(0, 1, 0, 18deg) rotate3d(1, 0, 0, -5deg); }
  15% { transform: rotate3d(0, 1, 0, -15deg) rotate3d(1, 0, 0, 4deg); }
  25% { transform: rotate3d(0, 1, 0, 12deg) rotate3d(1, 0, 0, -3deg); }
  35% { transform: rotate3d(0, 1, 0, -8deg) rotate3d(1, 0, 0, 2deg); }
  45% { transform: rotate3d(0, 1, 0, 5deg) rotate3d(1, 0, 0, -1deg); }
  55% { transform: rotate3d(0, 1, 0, -3deg) rotate3d(1, 0, 0, 0.5deg); }
  65% { transform: rotate3d(0, 1, 0, 1.5deg); }
  100% { transform: rotate3d(0, 1, 0, 0deg); }
}

@keyframes spdrdr-fade-in {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 1; transform: translateY(0); }
}


/* =========================================
   2. Root Variables
   ========================================= */
:root {
  color-scheme: light dark;
  
  /* Colors */
  --bg-primary: #25343F;
  --bg-secondary: #0e1418;
  --bg-tertiary: #090d0f;
  --text-primary: #f0f0f0;
  --text-secondary: rgba(255, 255, 255, 0.1);
  --accent-color: #10bb5a;
  --accent-hover: #ffffff; 

  /* Shared Filters */
  --filter-icon: invert(100%) grayscale(100%);
  --filter-seal: grayscale(100%) brightness(0) invert(100%);
}

/* @media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #ffffff;
    --bg-secondary: #ecf9eb;
    --bg-tertiary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.1);
    --accent-color: #10bb5a;
    --accent-hover: #0d8a43;
  }
} */


/* =========================================
   3. Base Typography & Elements
   ========================================= */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "SN Pro", Helvetica, Arial, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;

  @media (max-width: 1024px) {
    font-size: 13px;
  }
}

body.post {
  p, li {
    font-size: 1rem;
    line-height: 1.7rem;
    margin-bottom: 1.7rem;
  }
}

/* Globally balance headings to avoid repeating property in components */
h1, h2, h3, h4 {
  text-wrap: balance;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 2.5rem;
  
  @media (max-width: 1024px) { 
    font-size: 2rem; 
    line-height: 2rem; 
  }
}

h2 { 
  font-size: 2rem; 
  margin-bottom: 1rem; 
  line-height: 2rem; 
}

h3 { 
  font-size: 1.5rem; 
  margin-bottom: 0.5rem; 
}

h4 { 
  font-size: 1rem; 
  margin-top: 2rem; 
  margin-bottom: 0.5rem; 
}

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

ul {
  list-style: none;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

p, li {
  margin-bottom: 0.5rem;
  line-height: 1.5rem;
  font-size: 0.95rem;

  small {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
    padding-top: 0.5rem;
  }
}

code {
  font-family: monospace;
  color: var(--accent-color);
}


/* =========================================
   4. Global Layout & Utilities
   ========================================= */
section {
  padding: 8rem;
  margin: 0 auto;
  
  @media (max-width: 1200px) { padding: 6rem 4rem; }
  @media (max-width: 1024px) { padding: 6rem 2rem; }
}

/* Base button properties combined */
.button, 
.button-small, 
.secondary {
  display: inline-block;
  border-radius: 5rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button {
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: var(--bg-tertiary);
  margin-top: 1.5rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  border: 2px solid transparent;

  &:hover {
    background-color: var(--accent-hover);
    color: var(--bg-primary);
  }
}

.button-small {
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  border: 2px solid var(--text-primary);

  &:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
  }
}

.secondary {
  background-color: transparent;
  color: var(--accent-hover);
  border: 2px solid var(--accent-hover);

  &:hover {
    background-color: var(--accent-hover);
    color: var(--bg-primary);
    border-color: var(--accent-hover);
  }
}

.back-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  background-color: var(--accent-color);
  color: var(--bg-tertiary);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  backdrop-filter: blur(3px);
  transition: all 0.3s ease;
  z-index: 1000;

  &:hover {
    background-color: var(--accent-hover);
    color: var(--bg-primary);
  }
}


/* =========================================
   5. Header, Navigation & Breadcrumbs
   ========================================= */
.header-container {
  display: flex;
  padding: 4rem 8rem 0;
  margin: 0 auto;
  gap: 1rem;
  
  @media (max-width: 1024px) { padding: 4rem 2rem 0; }

  .logotype {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    margin-top: 1rem;

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

.logotype-icon {
  width: 13rem;
  height: auto;
  filter: brightness(0) invert(); /* Cleaned up brightness(500%) grayscale(100%) */
  margin-left: -8rem;
}

.site-nav { 
  position: relative; 
}

.burger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 24px;
  z-index: 20;
  position: fixed;
  color: white;
  top: 2rem;
  right: 2rem;
  mix-blend-mode: difference;
  filter: grayscale(100%);
  
  &:hover { color: var(--accent-color); }
}

.site-nav-inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;

  &.active {
    opacity: 1;
    pointer-events: auto;
  }
}

.site-nav-item {
  color: white;
  text-decoration: none;
  font-size: 24px;
  transition: opacity 0.2s ease;

  &:hover { color: var(--accent-color); }
}

.divider {
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
  margin: 0 auto;
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 2.5rem;
  color: white;
}

section.breadcrumbs {
  padding: 3rem 8rem 0 !important;
  
  @media (max-width: 1024px) { display: none; }

  ol {
    gap: 0.5rem;
    list-style: none;

    li {
      display: inline-block;
      font-size: 0.9rem;
      
      a {
        color: var(--accent-color);
        transition: all 0.3s ease;
        &:hover { color: var(--accent-hover); }
      }

      &:not(:last-child)::after {
        content: "|";
        margin: 0 0.5rem;
        color: var(--accent-color);
      }
    }
  }
}


/* =========================================
   6. Sections & Components
   ========================================= */

/* Shared Accent Line Utility */
/* This handles all elements requiring the consistent 3rem wide, 3px tall line */
.influence-intro h1::before,
.post-content .author-meta::before,
.panel-description .intro-label::before,
.reading-list .reading-item h4::before,
.writing-archive .pagination::before,
.mentoring-header h4::before,
.frequently-asked .faq-intro h4::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background-color: var(--accent-color);
  margin-bottom: 1rem;
}

/* --- Intro Sections --- */
.intro-small {
  font-size: 0.8rem;
  color: var(--accent-hover);
  opacity: 0.7;
  margin-top: 1rem;
}

.intro-section {
  margin: 0 auto;
  display: grid;  
  gap: 3rem;
  grid-template-columns: 4fr 3fr 3fr;

  .intro-copy {
    h1 { 
      font-size: 1rem; 
      color: var(--accent-color); 
      text-transform: uppercase; 
      font-weight: bold; 
      margin-bottom: 0; 
    }
  }
}

.intro-panel {
  .panel-content {
    display: grid;
    gap: 3rem;
    grid-template-columns: 4fr 3fr;
    
    @media (max-width: 1024px) { grid-template-columns: 1fr; }

    .panel-description {
       order: 2;
       @media (max-width: 1024px) { order: 1; }
    }

    .contact-and-links {
      order: 1;
      display: grid;
      gap: 3rem;
      grid-template-columns: 3fr 4fr;
      @media (max-width: 1200px) { display: block; order: 2; }
    }
  }

  .links-label {
    font-size: 0.8rem;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
    padding-left: 1rem;
    margin-top: 3rem;
  }

  ul.links-list {
    padding: 0;
    margin: 0;
    
    i { 
      margin-right: 0.5rem; 
      color: var(--accent-color); 
      font-size: 0.8rem; 
    }
    
    a {
      padding: 0.5rem 1rem;
      font-weight: 700;
      background-color: rgba(0, 0, 0, 0.3);
      transition: all 0.3s ease;
      backdrop-filter: blur(8px);
      border-radius: 1.5rem;
      display: block;

      &:hover {
        background-color: var(--accent-color);
        color: white;
        i { color: var(--bg-tertiary); }
      }
    }
  }
}

/* --- Influence Section --- */
.influence-section {
  display: grid;
  position: relative;
  gap: 3rem;
  grid-template-columns: 1fr 4fr;
  align-items: start;

  p { text-wrap: balance; }
  
  @media (max-width: 1024px) { grid-template-columns: 1fr; }
}

.influence-intro {
  margin-top: 3rem;
  position: sticky;
  top: 5rem;
  align-self: start;
  
  @media (max-width: 1024px) { 
    position: relative; 
    top: 0; 
    margin-top: 0; 
  }

  h1 {
    color: var(--accent-color);
    font-size: 1rem;
    
    &::before {
      margin-bottom: 0rem; /* Modifies shared line utility */
    }
  }
}

.influence-grid {
  column-count: 5;
  column-gap: 1rem; 
  
  @media (max-width: 1024px) { column-count: 3; }
}

.influence-item {
  margin-bottom: 0.75rem;
  background-color: var(--bg-tertiary);
  border-radius: 0.75rem;
  padding: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  perspective: 1000px;
  position: relative;

  @media (max-width: 1024px) { border-radius: 0.5rem; }

  img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    opacity: 0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: 10;
    pointer-events: none;
  }

  &:hover {
    animation: tilt 0.3s ease forwards;
    z-index: 999;
    img { opacity: 1; }
    &::before { animation: shine 0.6s ease; }
  }
}


/* --- Podcast Elements --- */
.podcast, 
.podcast-archive {
  background-color: #0a150a;
}

section.podcast-section, 
section.related-podcast-section {
  background-color: #0f200f;
  display: grid;
  gap: 6rem;
  position: relative;
  
  @media (max-width: 1024px) { padding: 0rem 2rem 5rem; }
  @media (min-width: 1024px) { grid-template-columns: 300px 1fr; align-items: start; }
}

/* Specificity fix for podcast wrapper overriding global section backgrounds */
.podcast section.podcast-section,
.podcast-archive section.podcast-section {
  background-color: #0a150a; 
  padding-top: 4rem;
}

.podcast-intro {
  width: 100%;
  max-width: 600px;
  position: sticky;
  top: 2rem;
  padding-top: 5rem;
  font-size: 0.95rem;
  line-height: 1.3rem;
  text-wrap: balance;

  @media (max-width: 1000px) { position: relative; }

  .podcast-icon { 
    width: 7rem; 
    height: 7rem; 
    filter: var(--filter-icon); 
    margin-bottom: 1rem; 
  }
}

section.related-podcast-section .podcast-intro { position: relative; }

.podcast-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;

  @media (min-width: 640px) { grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 1280px) { grid-template-columns: repeat(3, 1fr); }
  @media (min-width: 1536px) { grid-template-columns: repeat(4, 1fr); }
}

.stretched-link::after {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  content: "";
}

.podcast-episode {
  background-color: var(--bg-secondary);
  padding: 2rem;
  min-height: 24rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;

  /* Z-index grouping */
  .podcast-guest, 
  .episode-date,
  .bbbb-icon,
  .episode-number,
  .episode-title { 
    z-index: 10; 
  }

  .bbbb-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    filter: brightness(150%) invert(100%) sepia(100%) hue-rotate(180deg) brightness(150%);
    opacity: 0.6;
    transition: all 0.2s ease;
  }

  .guest-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(70%);
    z-index: 0;
    transition: all 0.3s ease;
    mix-blend-mode: screen;
  }  

  .season-label-text { 
    font-size: 0.8rem; 
    color: var(--accent-color); 
    text-transform: uppercase; 
    font-weight: bold; 
  }
  
  p { 
    font-size: 0.8rem; 
    margin-top: 0.5rem; 
    text-wrap: balance; 
    line-height: 1.2rem; 
  }

  .episode-number {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    position: absolute;
    line-height: 1;
    top: 0rem;
    letter-spacing: -0.10em;
    right: 0rem;
    font-weight: 900;
    transition: all 0.5s ease;
    pointer-events: none;
  }

  .gradient-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 1;
    transition: all 0.3s ease;
  }

  &:hover:not(.season-label) {
    padding-bottom: 3rem;
    background-color: var(--accent-color);

    .guest-image { scale: 1.1; mix-blend-mode: luminosity; }
    a { color: white; }
    .episode-number { 
      right: 2rem; 
      transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
      color: rgba(255, 255, 255, 0.5); 
    }
    .bbbb-icon { opacity: 1; right: -4rem; }
  }
  
  .episode-title { 
    font-size: 1.1rem; 
    font-weight: bold; 
    margin: 0.5rem 0; 
    display: block; 
  }
  
  .episode-date { 
    position: relative; 
    display: block; 
    font-size: 0.875rem; 
  }
}

.season-label {
  background-color: transparent;
  border-radius: 0 !important;
  border-left: 5px solid var(--accent-color);

  @media (max-width: 1024px) {
    border-left: 3px solid var(--accent-color);
    min-height: fit-content !important;
  }
}

.podcast-episode-detail {
  padding: 4rem 8rem 8rem 0;
  display: grid;
  gap: 3rem;
  grid-template-columns: 2fr 3fr 3fr;

  @media (max-width: 1024px) { 
    padding: 2rem 2rem 5rem; 
    grid-template-columns: 1fr; 
  }

  .guest-image{
    width: 100%; 
    height: 600px; 
    object-fit: cover; 
    border-radius: 0 1rem 1rem 0;
    
    @media (max-width: 1024px) { 
      height: 400px; 
      margin-left: -2rem; 
    }
  }

  .podcast-links {
    display: flex; gap: 2rem;
    img { filter: var(--filter-icon); transition: all 0.3s ease; }
  }

  .podcast-icon { 
    width: 7rem; 
    height: 7rem; 
    filter: var(--filter-icon); 
    margin-bottom: 1rem; 
  }
  
  h2, h4 { color: var(--accent-color); }
  h4 { margin-top: 1rem; }

  .episode-meta {
    display: grid; gap: 1rem; grid-template-columns: 1fr 1fr 1fr; padding-bottom: 1rem;
    @media (max-width: 1024px) { grid-template-columns: repeat(2, 1fr); }
  }

  .mini-heading { 
    color: var(--accent-color); 
    font-weight: 800; 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 1rem; 
  }
  
  .episode-header { 
    @media (min-width: 1025px) { margin-top: 2rem; } 
  }

  .episode-overview {
    margin-top: 2rem;
    p small { 
      text-wrap: balance; 
      opacity: 0.8; 
      color: var(--accent-color); 
      line-height: 1.3rem; 
      margin-bottom: 2rem; 
    }
  }
}


/* --- Post Sections & Article Wrappers --- */
.posts-section {
  background-color: var(--bg-secondary);
  
  .recent-posts {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
    
    @media (max-width: 1024px) { grid-template-columns: repeat(2, 1fr); }
    @media (max-width: 600px) { grid-template-columns: repeat(1, 1fr); }

    .post-date { 
      font-size: 0.9rem; 
      color: var(--accent-color); 
      margin-bottom: 0.5rem; 
      display: block; 
      font-weight: 800; 
    }
    .post-item {
      h3 { margin-bottom: 1rem; font-size: 1.5rem; line-height: 1.5rem; }
      .post-excerpt { text-wrap: balance; }
    }
  }
}

section.post-wrapper {
  display: grid;
  grid-template-columns: 6fr 2fr;
  gap: 6rem;
  margin: 0 auto;
  position: relative;
  align-items: start;
  padding: 0 8rem;

  @media (max-width: 1024px) { padding: 4rem 2rem; grid-template-columns: 1fr; }
}

.post-content {
  margin-top: 2rem;
  max-width: 900px;
  display: block;

  li { text-wrap: balance !important; }
  
  iframe { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    margin: 0 0 2rem 0; 
    border-radius: 1rem; 
    box-shadow: var(--bg-tertiary) 0px 10px 30px -5px; 
  }

  .contents-heading { font-size: 1rem; margin-bottom: 1rem; display: block; font-weight: 600; text-wrap: balance; }
  .table-of-contents { background-color: var(--bg-tertiary); margin-bottom: 2rem; padding: 2rem 2rem 3rem; }
  .bottom-panel { position: absolute; bottom: 0; left: 0; width: 100%; height: 5rem; background-color: var(--bg-secondary); }

  #toc {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;

    @media (max-width: 1200px) {
      grid-template-columns: 1fr;
    }

    li {
      margin-bottom: 0;
      font-size: 1rem;
      color: var(--accent-color);
      display: grid;
      grid-template-columns: 30px auto;

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

      i {
        margin-right: 0.5rem;
        color: var(--accent-color);
        font-size: 1rem;
        padding-top: 0.3rem;
      }
    }
  }

  h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    color: var(--accent-color);
    line-height: 1;
    padding: 3rem 2rem 2rem;
    background-color: var(--bg-tertiary);
    border-radius: 1rem 1rem 0 0;

    @media (max-width: 1024px) { font-size: 2rem; }

    &::before {
      content: "";
      display: block;
      width: 5rem;
      height: 5px;
      background-color: var(--accent-color);
      margin-bottom: 1rem;
    }
  }

  .author-meta {
    margin-top: 3rem;
    display: block;

    p {
      font-size: 0.9rem;
      color: var(--accent-hover);
      opacity: 0.8;
      padding-right: 3rem;
    }

    h4 {
      color: var(--accent-color);
      margin: 1rem 0;
    }
    
    &::before {
      margin-bottom: 0.5rem; /* Modifies shared line utility */
    }
  }

  blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 2rem;
    background-color: var(--bg-tertiary);
    margin: 3rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--accent-color);
    font-family: "Georgia", serif;

    p {
      font-size: 1.4rem;
      margin-bottom: 0;
    }
  }

  h2 { font-size: 1.55rem; margin-top: 2rem; margin-bottom: 1rem; }
  h3 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.5rem; }

  ul,
  ol {
    list-style: disc;
    margin-left: 2.5rem;
    margin-bottom: 1.5rem;

    li {
      margin-bottom: 0.5rem;
      text-wrap: pretty;
    }
  }

  ol { list-style: decimal; }

  .post-date {
    font-size: 1rem;
    color: var(--accent-color);
    padding: 0 2rem;
    display: block;
    font-weight: 900;
    background-color: var(--bg-tertiary);
  }

  .markdown {
    padding: 0 2rem;

    @media (max-width: 1024px) { padding: 0; }

    img {
      max-width: 100%;
      margin: 1rem 0;
      border-radius: 0.5rem;
    }
  }
}

.post-sidebar {
  position: sticky; top: 2rem; padding-top: 5rem; display: block; align-self: start; height: fit-content;
  
  .post-date { font-size: 0.9rem; display: block; font-weight: 800; }
  p.post-excerpt { font-size: 1rem; line-height: 1.7rem; text-wrap: balance; }
  h3 { font-size: 1.2rem; line-height: 1.7rem; margin: 0.5rem 0; }
}


/* --- About & Scrolling Panels --- */
.scroll-panel {
  height: 70vh; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  
  @media (max-width: 1024px) { height: auto; }
}

.panel-content {
  max-width: 1600px; 
  display: grid; 
  gap: 6rem;
  
  .panel-heading { 
    font-size: 2rem; 
    h2 { margin: 0; } 
  }
  
  .panel-description {
    font-size: 1rem; line-height: 1.5rem; text-wrap: balance;
    
    .intro-label {
      font-weight: 700; 
      margin-bottom: 1rem; 
      display: block;
      
      &::before {
        margin-bottom: 0.5rem; /* Modifies shared line utility */
      }
    }
    
    ul { list-style: disc; margin-left: 1.5rem; margin-top: 1rem; li { margin-bottom: 0.5rem; text-wrap: pretty; } }
  }
}

.why-work-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); h4 { margin-top: 0; } }

.about-section {
  display: grid; gap: 6rem; grid-template-columns: 1fr 4fr; position: relative;
  
  @media (max-width: 1024px) { padding: 2rem; grid-template-columns: 1fr; }

  .about-photo { 
    width: 80%; 
    height: auto; 
    border-radius: 0.5rem; 
    object-fit: cover; 
    aspect-ratio: 3 / 4; 
    background-color: var(--bg-tertiary); 
    display: block; 
    margin-bottom: 1rem; 
  }
  
  .about-content { position: sticky; top: 4rem; margin-top: 4rem; margin-bottom: 3rem; }

  .positions-section {
    display: block; margin-bottom: 2rem;
    h4 { font-size: 1.25rem; margin-bottom: 0.5rem; border-top: 2px solid var(--accent-color); padding-top: 1.5rem; }
    p { text-wrap: balance; }
    
    .positions-list {
      display: grid; margin-bottom: 2rem; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
      
      .position-date, .position-title, .position-role { line-height: 1.5rem; }
      .position-date { text-transform: uppercase; font-size: 0.8rem; font-weight: 600; }
      .position-title { display: block; font-weight: 600; text-wrap: balance; font-size: 1.2rem; margin: 0.5rem 0 0; }
      .position-title + p { margin-top: 0.5rem; }
      .position-role { display: block; font-size: 1.2rem; text-wrap: balance; margin-bottom: 0.5rem; }
    }
  }
}


/* --- Contact Info Panel --- */
.panel-contact-info {
  background-color: #fff;
  border-bottom: 15px solid var(--accent-color);
  padding: 2rem 1.5rem 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-height: 440px; max-height: 440px; max-width: 320px; min-width: 280px;
  border-radius: 0.75rem;  
  display: grid; align-items: end; position: relative; overflow: hidden; transform: rotateZ(-4deg);

  @media (max-width: 1024px) { margin: 0 auto; }

  img { filter: grayscale(100%); }
  
  .signature-image { width: 100%; height: auto; object-fit: contain; display: block; margin-top: 1rem; opacity: 0.8; position: absolute; top: 8rem; right: 1.25rem; z-index: 2; }
  .infinity-symbol { top: 3rem; right: 1.5rem; position: absolute; font-size: 5rem; z-index: 11; color: var(--accent-color); opacity: 0.3; }
  .contact-photo { background-color: var(--bg-secondary); aspect-ratio: 3 / 2; overflow: hidden; display: block; border-radius: 0.5rem; object-fit: cover; width: 7rem; height: 9rem; margin-left: 0.5rem; margin-bottom: 1rem; z-index: 10; position: relative; }

  h4, p, h3 { color: var(--bg-tertiary); padding-left: 0.5rem; }
  h4, p { margin: 0; font-size: 0.9rem; line-height: 1.5rem; }
  h3 { text-transform: uppercase; color: var(--accent-color); font-size: 0.9rem; border-top: 3px solid var(--accent-color); padding-top: 0.5rem; margin: 0 0 0.5rem; }

  .contact-icons {
    display: flex; font-size: 1.2rem; margin-top: 1rem; gap: 0.5rem; width: 3rem; height: 2.5rem; margin-right: 0.5rem; padding: 0 0.5rem;
    a { color: var(--accent-color); transition: all 0.3s ease; &:hover { color: var(--bg-tertiary); } }
  }
}


/* --- Clients Section --- */
.clients-section {
  background-color: var(--bg-tertiary);

  .clients-panel {
    display: grid; grid-template-columns: 1fr 4fr; gap: 8rem;
    @media (max-width: 1024px) { grid-template-columns: 1fr; gap: 3rem; }

    .client-list {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem;
      @media (max-width: 600px) { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; }

      dl.client-item {
        margin-bottom: 1rem;
        
        img { 
          max-width: 140px; 
          height: auto; 
          margin-bottom: 1rem; 
          filter: var(--filter-seal); 
        }
        
        dt { font-size: 1rem; font-weight: bold; color: var(--accent-color); margin-bottom: 0.5rem; }
        dd { line-height: 1.5rem; font-size: 1rem; color: var(--text-primary); margin: 0; &::before { content: "\2014"; margin-right: 0.5rem; } }

        @media (max-width: 600px) {
          margin-bottom: 0;
          img { padding: 1rem 0; display: block; margin: auto; }
          dt, dd { display: none; }
        }
      }
    }
  }
}


/* --- Reading & Archive Lists --- */
.scroll-section canvas {
  width: 100%; height: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: -10;
  @media (max-width: 1024px) { position: fixed; height: 100vh; }
}

.reading-section {
  padding-right: 0 !important; padding-top: 1rem; padding-bottom: 3rem;
  h3 { margin-bottom: 2rem; }
}

.reading-list {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: 1rem; -webkit-overflow-scrolling: touch;

  &::-webkit-scrollbar { height: 0.5rem; }
  &::-webkit-scrollbar-track { background: var(--bg-tertiary); border-radius: 4px; margin-right: 2rem; }
  &::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 4px; }

  .reading-item {
    flex: 0 0 320px; scroll-snap-align: start; background-color: var(--accent-color); padding: 2rem;
    border-radius: 0.5rem; transition: all 0.3s ease; height: 500px; display: flex; flex-direction: column; justify-content: flex-end; position: relative;

    .reading-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; filter: grayscale(); mix-blend-mode: multiply; transition: all 0.3s ease; }
    .reading-date, h4, h3, a, p { z-index: 10; }
    .reading-date { position: absolute; top: 2rem; left: 2rem; text-transform: uppercase; font-size: 0.8rem; font-weight: 800; color: var(--accent-color); }
    
    h4 { color: white; }
    h3 { margin-bottom: 1rem; }
    .reading-author { color: white; }
    
    h3 a { 
      color: var(--text-primary); 
      text-decoration: none; 
      font-weight: 800; 
      font-size: 2.2rem; 
      line-height: 2rem; 
      text-wrap: balance; 
      margin-bottom: 1rem; 
      &:hover { color: var(--accent-hover); } 
    }

    &:hover {
      .reading-image { opacity: 1; filter: grayscale(0) brightness(60%); mix-blend-mode: normal; }
      a, .reading-date, h4 { color: white; }
    } 
  }

  @media (max-width: 768px) {
    .reading-item { flex: 0 0 60%; height: 420px; min-width: 280px; h3 a { font-size: 1.4rem; line-height: 1.2rem !important; } }
  }
}

section.writing-archive {
  padding: 2rem 8rem;
  @media (max-width: 1024px) { padding: 2rem; }
  h1 { margin-bottom: 2rem; }

  .writing-archive-items {
    display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    @media (max-width: 1024px) { gap: 1rem; }

    .archive-item {
      border-radius: 0.5rem; transition: all 0.3s ease; margin-bottom: 1rem;
      .post-date { font-size: 0.9rem; color: var(--accent-color); margin-bottom: 0.5rem; display: block; font-weight: 800; }
      h3 { margin-bottom: 1rem; line-height: 1.7rem; }
      p { font-size: 1rem; line-height: 1.7rem; color: var(--text-primary); }
      a:hover { color: var(--accent-hover); }
    }
  }

  .pagination {
    margin-top: 2rem;
    .page_number { display: block; font-size: 2rem; font-weight: 200; }
    .previous, .next { display: inline-block; font-size: 1rem; color: var(--accent-color); text-decoration: none; margin-top: 0.5rem; transition: all 0.3s ease; &:hover { color: var(--accent-hover); } }
    .previous { margin-right: 1rem; }
    .disabled { color: var(--accent-hover); pointer-events: none; }
  }
}


/* --- Legal / Terms --- */
.terms-intro, .business-terms { padding-top: 3rem; padding-bottom: 0; p, li { text-wrap: balance; } }
.terms-intro p { font-size: 1.1rem; line-height: 1.6rem; }

.business-terms, 
.privacy-policy {
  column-gap: 3rem;
  @media (max-width: 1024px) { columns: 1; }

  table {
    width: 100%; border-collapse: collapse; margin-bottom: 2rem;
    th, td { border: 1px solid var(--bg-secondary); padding: 1rem 1rem 0 0; text-align: left; text-wrap: balance; vertical-align: top; font-size: 0.9rem; }
    th { background-color: var(--bg-secondary); color: var(--accent-color); font-weight: 600; border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; }
  }

  ul { list-style: disc; margin: 1rem 2rem 1rem 1rem; li { margin-bottom: 0.5rem; padding-left: 1rem; margin-left: 1rem; text-wrap: balance; } }
  h2 + ul { margin-top: 0; }

  h2 {
    counter-increment: section-counter; counter-reset: subsection-counter; margin-bottom: 0.5rem; margin-top: 1rem; font-size: 1.4rem; line-height: 1.6rem; text-wrap: balance;
    &::before { content: counter(section-counter) ". "; color: var(--accent-color); }
    &:first-of-type { margin-top: 0; }
  }

  p { counter-increment: subsection-counter; &::before { content: counter(section-counter) "." counter(subsection-counter) " "; font-weight: 600; margin-right: 1rem; color: var(--accent-color); } }
}

.business-terms { columns: 3; }
.privacy-policy { columns: 2; }


/* --- Mentoring --- */
.mentoring-header {
  padding-top: 6rem; display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  .header-titles, .header-content { max-width: 480px; }
  
  h1, h4 { color: var(--accent-color); }
  h4 { margin-top: -1rem; }
  .header-content p { text-wrap: balance; }
}

.mentoring-details .details-intro {
  max-width: 800px;
  h3 { color: var(--accent-color); }
  p { text-wrap: balance; font-size: 1.1rem; line-height: 1.6rem; }
}

.focus-areas {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); margin-top: 2rem;
  
  .focus-area {
    background-color: var(--bg-tertiary); padding: 2rem 3rem; border-radius: 1rem;
    h4 { margin-top: 0; color: var(--accent-color); font-size: 1.2rem; }
    ul { margin: 1rem 0; }
    li {
      display: block; position: relative; text-wrap: balance;
      &::before { font-family: "fontawesome"; content: "\f058"; color: var(--accent-color); margin: 0; position: absolute; left: -3.2rem; font-size: 1.35rem; }
      strong { color: var(--accent-color); }
    }
    p { text-wrap: balance; }
  }
}

.swear { 
  background-color: var(--accent-color); 
  color: var(--bg-tertiary); 
  font-family: 'courier new', monospace; 
  font-weight: 600; 
  padding: 0 0.2rem; 
  border-radius: 0.2rem; 
  transform: rotateZ(5deg); 
  display: inline-block; 
}

.mentoring-who-am-i {
  padding-top: 0; padding-bottom: 0; display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  .profile-image, .profile-text, .profile-quote { max-width: 480px; min-width: 300px; }
  h3 { color: var(--accent-color); }
  .profile-image { width: 80%; display: block; img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.5rem; background-color: var(--bg-tertiary); } }
  
  .profile-quote blockquote {
    position: relative; font-size: 2rem; padding-top: 2rem; line-height: 2.1rem; font-family: "Georgia", serif; font-style: italic; text-wrap: balance;
    &::before { content: "“"; font-size: 11rem; color: var(--bg-tertiary); margin-top: 1.5rem; font-style: normal; font-family: "SN Pro", sans-serif; font-weight: 900; position: absolute; top: 1rem; left: -1rem; z-index: -1; }
    cite { display: block; font-family: "SN Pro", sans-serif; margin-top: 1rem; font-size: 1rem; color: var(--accent-color); font-weight: 600; }
  }
  
  small { 
    text-wrap: balance; 
    opacity: 0.8; 
    line-height: 1.3rem; 
    margin-bottom: 2rem; 
    
    &::before { 
      content: ""; 
      display: block; 
      width: 3rem; 
      height: 2px; 
      background-color: var(--text-primary); 
      margin-bottom: 1rem; 
    } 
  }
}

.frequently-asked {
  padding-top: 0; padding-bottom: 0; display: grid; gap: 3rem; grid-template-columns: 1fr 2fr;
  @media (max-width: 1100px) { display: block; }
  h3 { color: var(--accent-color); }
  
  .faq-intro { 
    margin-bottom: 2rem; 
    p { text-wrap: balance; font-size: 1.1rem; line-height: 1.6rem; } 
    h4 { margin-top: 2rem; color: var(--accent-color); } 
  }
  
  details {
    background-color: var(--bg-tertiary); padding: 1rem 3rem 1rem 2rem; border-radius: 0.5rem; margin-bottom: 1rem;
    summary { font-weight: 600; font-size: 1rem; color: var(--accent-color); cursor: pointer; position: relative; }
    p { text-wrap: balance; margin-top: 1rem; }
  }
}

.mentoring-meetings {
  padding-top: 0; padding-bottom: 6rem;
  h3 { color: var(--accent-color); }
  .meetings-intro { margin-bottom: 2rem; p { text-wrap: balance; font-size: 1.1rem; line-height: 1.6rem; } }
  
  .meeting-approach {
    margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    
    .approach-item { 
      background-color: var(--bg-tertiary); 
      padding: 2rem; 
      border-radius: 0 0.5rem 0.5rem 0; 
      border-left: 4px solid var(--accent-color); 
      h4 { margin-top: 0; color: var(--accent-color); font-size: 1.2rem; } 
      p { text-wrap: balance; } 
    }
  }
}

.confidentiality {
  display: grid; gap: 2rem; grid-template-columns: 1fr 3fr;
  @media (max-width: 1024px) { grid-template-columns: 1fr; }
}

.confidentiality-intro {
  margin-bottom: 2rem;
  h1 { font-size: 2.5rem; line-height: 1.2; color: var(--accent-color); @media (max-width: 1024px) { font-size: 1.75rem; } }
  p { font-size: 1.25rem; line-height: 1.6rem; margin-top: 1rem; text-wrap: balance; }
}

.confidentiality-content {
  column-count: 2; column-gap: 3rem;
  
  h2 { font-size: 1.75rem; line-height: 1.3; margin-top: 2rem; break-inside: avoid; &:first-of-type { margin-top: 0; } }
  h2 + p, p + h2 { break-inside: avoid; }
  p { margin-top: 1rem; break-inside: avoid; text-wrap: balance; }
  ul { margin-top: 0; padding-left: 2rem; li { margin-bottom: 0.5rem; list-style-type: disc; padding-left: 1rem; } }
}


/* --- Speed Reader (spdrdr) Module --- */
.spdrdr-btn {
  background-color: var(--accent-color); 
  border: 1px solid var(--accent-color); 
  border-radius: 1rem; 
  padding: 0.5rem 1rem; 
  font-size: 0.85em; 
  cursor: pointer; 
  margin-left: 1rem; 
  transition: all 0.2s ease; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  font-weight: 600; 
  color: var(--bg-tertiary);
  
  &:hover { 
    background-color: var(--accent-hover); 
    border-color: var(--accent-hover); 
    color: var(--bg-tertiary); 
  }
  
  @media (max-width: 600px) { 
    padding: 0.4rem 0.8rem; 
    font-size: 0.75em; 
    display: block; 
    margin-left: 0; 
    margin-top: 1rem; 
    width: 50%; 
  }
}

#spdrdr-container { 
  background-color: var(--bg-tertiary); 
  display: none; 
  padding: 2rem; 

  &.spdrdr-visible { 
    display: block; 
    animation: spdrdr-fade-in 0.5s ease-out; 
  }
}

.spdrdr-top { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 20px; 
  font-family: ui-sans-serif, system-ui, sans-serif; 
}

.spdrdr-wpm-display { 
  font-weight: 600; 
  font-size: 0.9em; 
  opacity: 0.8; 
}

.spdrdr-close { 
  background: none; 
  border: none; 
  font-size: 1.2em; 
  cursor: pointer; 
  opacity: 0.6; 
  color: inherit; 

  &:hover { opacity: 1; } 
}

.spdrdr-word-container { 
  font-size: 4rem; 
  display: flex; 
  width: 100%; 
  max-width: 400px; 
  
  @media (max-width: 600px) { font-size: 2.5rem; } 
}

#spdrdr-left { text-align: right; flex: 1; }
#spdrdr-pivot { color: var(--accent-color); font-weight: bold; } 
#spdrdr-right { text-align: left; flex: 1; }

.spdrdr-credit { 
  position: absolute; 
  bottom: 10px; 
  right: 10px; 
  font-size: 0.9em; 

  a { 
    color: var(--accent-color); 
    font-weight: 600; 
    text-transform: uppercase; 

    &:hover { text-decoration: underline; } 
  } 
}

.spdrdr-display {
  font-family: 'SN Pro', sans-serif; 
  height: 150px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: black; 
  border-radius: 1rem; 
  margin-bottom: 20px; 
  position: relative;

  @media (max-width: 600px) { height: 100px; }

  &::before, 
  &::after { 
    content: ""; 
    position: absolute; 
    width: 2px; 
    background: var(--accent-color); 
    height: 20px; 
    opacity: 0.5; 
  }

  &::before { top: 0px; left: 50%; transform: translateX(-50%); }
  &::after { bottom: 0px; left: 50%; transform: translateX(-50%); }
}

.spdrdr-controls { 
  display: flex; 
  align-items: center; 
  gap: 15px; 
  margin-bottom: 20px; 
}

.spdrdr-icon-btn { 
  background: rgba(128, 128, 128, 0.1); 
  border: none; 
  font-size: 1.2rem; 
  cursor: pointer; 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: inherit; 
  transition: background 0.2s; 

  &:hover { background: rgba(128, 128, 128, 0.2); } 
}

#spdrdr-slider { 
  flex: 1; 
  cursor: pointer; 
  accent-color: var(--accent-color); 
}

.spdrdr-progress-container { 
  height: 6px; 
  background: rgba(128, 128, 128, 0.2); 
  border-radius: 3px; 
  margin-bottom: 10px; 
  cursor: pointer; 
  position: relative; 
}

.spdrdr-progress-bar { 
  height: 100%; 
  background: var(--accent-color); 
  border-radius: 3px; 
  width: 0%; 
  pointer-events: none; 
  transition: width 0.1s linear; 
}

.spdrdr-status { 
  display: flex; 
  justify-content: space-between; 
  font-size: 0.8em; 
  opacity: 0.6; 
  font-family: ui-sans-serif, system-ui, sans-serif; 
}


/* =========================================
   7. Footer
   ========================================= */
body, 
body.post {
  footer {
    padding: 8rem;
    @media (max-width: 1024px) { padding: 2rem 2rem 5rem; }
    
    .clean-creatives-seal { 
      width: 7rem; 
      height: 7rem; 
      filter: var(--filter-seal); 
    }
  }
}

.footer-content {
  display: grid; gap: 3rem; grid-template-columns: 1fr 3fr 3fr 3fr;

  ul { 
    margin: 0; 
    li { 
      margin-bottom: 0; 
      &::before { content: "—"; margin-right: 0.5rem; color: var(--accent-color); } 
    } 
  }
  
  h4 { margin-bottom: 0.5rem; &:first-of-type { margin-top: 0; } }
  a { color: var(--accent-color); transition: all 0.3s ease; &:hover { color: white; } }
  p { font-size: 0.9rem; opacity: 0.8; text-wrap: balance; margin-bottom: 0.5rem; }

  @media (max-width: 1024px) {
    grid-template-columns: 1fr; gap: 2rem;
    ul li { 
      display: inline-block; 
      margin-right: 1rem; 
      &::before { content: none; } 
    }
  }
}