:root {
  /* Colors */
  --color-text: #222222;
  --color-text-light: #555555;
  --color-bg: #ffffff;

  --card-orange: #eb5e28;
  --card-beige: #e5dac3;
  --card-blue: #0081c6;
  --card-green: #4ade80;
  --card-black: #1a1a1a;
  --card-purple: #7c3be3;

  /* Fonts */
  --font-serif: 'Newsreader', serif;
  --font-sans: 'Inter', sans-serif;

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Special Header for Home Page */
.header-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.2rem; /* Balanced spacing between logo and title */
  margin-bottom: 1.5rem;
  padding-top: 0.75rem;
  
  
}

/* Local logo styling */
.header-logo {
  width: 62px; /* Sized to match the visual height of the text */
  height: auto;
  display: block;
}

/* Unique class that won't affect About or Movements pages */
.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem; /* Larger scale specifically for the hero */
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.03em; /* Slightly tighter for larger text */
  line-height: 1.25;
  color: #1a1a1a;
}

/* Typography */
h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.subtitle-home {
  text-align: center;
  color: var(--color-text-light);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  margin-top: 60px;
}

/* The Link Styling */
.ai-link {
  text-decoration: none;
  color: #007bff;
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;

  /* Custom Dotted Line Replacement */
  background-image: radial-gradient(circle, #007bff 1.5px, transparent 1.5px);
  background-position: bottom;
  background-repeat: repeat-x;
  
  /* ADJUST THIS: 8px is the gap between dots, 2px is the height of the area */
  background-size: 8px 2px; 
}

/* The Local Icon Styling */
.ai-link::after {
  content: "";
  display: inline-block;
  width: 19px;
  height: 19px;
  margin-left: 6px;
  background-image: url('src/icons/arrow-up-right.svg'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

/* Hover Effects */
.ai-link:hover {
  /* Swaps the dots for a solid blue line on hover */
  background-image: linear-gradient(#007bff, #007bff);
  background-size: 100% 2px;
}

/* Hover Animation */
.ai-link:hover::after {
  transform: translate(2px, -2px);
}

.footer-note {
  display: block;
  margin-top: 36px;
  margin-bottom: 100px;
}


.subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: var(--spacing-xl);
}

h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 400;
}

p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.underline {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
}

/* Layout */
header {
  padding-top: var(--spacing-md);
  margin-bottom: 2rem;
}

.top-menu {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.top-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
}

.top-menu a {
  text-decoration: none;
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.top-menu a:hover {
  color: var(--color-text);
}

.top-menu a.active {
  font-weight: 600;
  /* Bold when selected */
  color: var(--color-text);
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  overflow: visible;
  /* Allow cards to overflow slightly if needed, though centered is better */
}

/* Hero Cards Section */
#hero {
  height: 400px;
  /* Space for the cards */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.cards-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 300px;
  perspective: 1000px;
}

.card {
  position: absolute;
  width: 180px;
  height: 260px;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
  overflow: hidden;
  color: white;
  /* Default text color for colored cards */
  cursor: pointer; /* Makes it look clickable */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease; /* Smoother "pop" effect */
}

.card h3 {
  position: relative;
  z-index: 2;
}

.card:hover {
  z-index: 100 !important; /* Forces the hovered card to the very front */
  transform: translateY(-20px) scale(1.05) rotate(0deg) !important; /* Lifts, enlarges, and levels the card */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Enhances the depth */
}
/* Individual Card Styles & Positioning */

/* 1. Orange Card - Working Knowledge */
.card.orange {
  background-color: var(--card-orange);
  left: 0;
  top: 20px;
  transform: rotate(-12deg);
  z-index: 6;
}

/* 2. Beige Card - Practical Demonstration */
.card.beige {
  background-color: var(--card-beige);
  color: #333;
  /* Dark text */
  left: 110px;
  top: 40px;
  transform: rotate(-5deg);
  z-index: 5;
}

/* 3. Blue Card - Collaborating with AI */
.card.blue {
  background-color: var(--card-blue);
  left: 210px;
  top: 10px;
  transform: rotate(0deg);
  z-index: 4;
}

/* 4. Green Card - Building Interface Kit */
.card.green {
  background-color: var(--card-green);
  color: #1a1a1a;
  left: 320px;
  top: 40px;
  transform: rotate(4deg);
  z-index: 3;
}

/* 5. Black Card - Interface Kit */
.card.black {
  background-color: var(--card-black);
  left: 440px;
  top: 20px;
  transform: rotate(10deg);
  z-index: 2;
}

.card.purple {
  background-color: var(--card-purple); /* Deep Purple */
  left: 540px; /* Incremental shift from the black card's right edge */
  top: 65px;
  transform: rotate(12deg);
  z-index: 1;
}

/* Card Textures (CSS Only) */

/* Orange: Vertical grainy lines */
.texture-overlay {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.2) 2px, rgba(255, 255, 255, 0.2) 4px);
  mask-image: radial-gradient(black, transparent);
  /* Soften edges */
  opacity: 0.6;
}

/* Beige: Small Grid/Mosaic */
.grid-texture {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  height: 40%;
  background-image:
    linear-gradient(#ccc 1px, transparent 1px),
    linear-gradient(90deg, #ccc 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.5;
}

/* Blue: Horizontal fine lines */
.stripes-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.1) 3px, rgba(255, 255, 255, 0.1) 4px);
  opacity: 0.7;
}

/* Green: Binary/Code block Simulation */
.noise-texture {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  height: 100px;
  background-image: radial-gradient(#1a1a1a 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.2;
}

/* Black: Wireframe/Blueprint */
.wireframe-texture {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.dot-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.5;
}


/* Library Section */
/* Library Section Fix */


#library {
  max-width: 800px; /* Changed from 580px to 900px */
  margin: 0 ;
  
  
  /* Ensures responsiveness and box alignment */
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 75px;
}

#library h2 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  text-align: center;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}

.library-description {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  text-align: center;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  
  
  margin-bottom: 3rem; /* Creates space before the main content starts */
}

/* Base state for hidden content */
.hide-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.library-content p {
  /* Increased font size slightly to balance the 900px line length */
  font-size: 1.1rem; 
  color: #555;
  line-height: 1.65; /* Better vertical rhythm for wider containers */
  margin-bottom: 1rem;
  
  /* Optional: keeps text from getting too wide even if container is 900px */
  max-width: 800px; 
  margin-left: auto;
  margin-right: auto;
  margin-top: 2.5rem;
}

.footer-line {
  border-bottom: 1px solid #eee;
  width: 500px; /* Slightly wider to match the 900px scale */
  margin: 0 auto var(--spacing-lg);
}

/* Hide/Show Logic */
.hide-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

/* Expanded state */
.hide-content.open {
  max-height: 2500px;
  opacity: 1;
}

/* Inline state (More) */
.lib-toggle-btn {
  display: inline; 
  background: none;
  border: none;
  color: #007bFF;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  border-bottom: 1.5px dotted #007bFF;
}

/* Block state when inside the open content (Hide) */
.hide-content.open .lib-toggle-btn {
  display: block; /* Moves it to its own line at the very bottom */
  margin: 1.5rem 0 0 0;
  width: fit-content;
}

.lib-toggle-btn:hover {
  color: var(--card-orange);
  border-bottom-color: var(--card-orange);
}

/* ==========================================================================
   On Going State Styling (Simplified)
   ========================================================================== */

/* Target the text elements for projects in progress */
.content-entry.is-ongoing .link-red,
.content-entry.is-ongoing .link-meta,
.content-entry.is-ongoing .entry-desc {
  color: #666666 !important; /* Matches your icon gray */
  cursor: default;
}

.content-entry.is-ongoing .icon {
  background-color: #aaaaaa; /* Even lighter gray for the icons to show "empty" state */
  
}

/* Ensure the tag itself stays colored as per your request, 
   but we can make the text inside slightly more muted if desired */
.content-entry.is-ongoing .tag-status-future {
  opacity: 1;
}


/* ==========================================================================
   Future / Deactivated State Styling
   ========================================================================== */

/* Target the container of a future project */
.content-entry.is-future .link-red,
.content-entry.is-future .link-meta,
.content-entry.is-future .entry-desc {
  color: #aaa !important; /* Matches your icon gray */
  cursor: default;
}


.content-entry.is-future .icon {
  background-color: #aaaaaa; /* Even lighter gray for the icons to show "empty" state */
  
}

/* Ensure the tag itself stays colored as per your request, 
   but we can make the text inside slightly more muted if desired */
.content-entry.is-future .tag-status-future {
  opacity: 1;
}




/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .cards-container {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .card {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 280px;
  }

  #hero {
    height: auto;
  }
}

/* DePIN Stack Accordion */
#depin-stack {
  max-width: 580px;
  margin: 150px 72px 150px 72px;
  
  /* More bottom spacing */
}

#depin-stack h2 {
  font-family: var(--font-serif);
  font-size: 56px;
  /* H1 Size */
  font-weight: 400;
  text-align: center;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Space between accordion items */
  
}

.accordion-item {
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.5rem;
  
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  /* More padding */
  cursor: pointer;
  transition: color 0.2s ease;
}

.accordion-header:hover h3 {
  color: var(--card-orange);
}

.accordion-header h3 {
  font-family: var(--font-serif);
  /* Changed to Serif for H2 feel */
  font-size: 32px;
  /* H2 Size */
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
}

.toggle-icon {
  font-family: monospace;
  font-size: 1.5rem;
  color: #999;
  transition: transform 0.3s ease;
}

/* Open State (handled by JS) */
.accordion-item.open .toggle-icon {
  transform: rotate(45deg);
}

.accordion-item.open {
  padding-bottom: 2rem;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* Force all accordion content to be visible on this page */
.accordion.always-open .accordion-content {
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 2rem;
}

/* Remove interactive styling from the headers */
.accordion.always-open .accordion-header {
  cursor: default; /* Removes the hand pointer */
  pointer-events: none; /* Disables click events */
  padding-bottom: 1rem;
}

/* Maintain standard text color on hover */
.accordion.always-open .accordion-header:hover h3 {
  color: var(--color-text);
}

/* Ensure the wrapper doesn't have unnecessary left padding now that icons are gone */
.accordion.always-open .content-wrapper {
  padding-left: 0;
}

.content-wrapper {
  padding: 1rem 1 1rem 1rem;
}

/* Inner Content Styles */
.top-entry {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
  padding-left: 0;
  
}

.top-entry .link-red {
  font-size: 26px;
  font-weight: 500;
}

/* Individual class for project labels */
.detail-label {
  font-family: var(--font-sans);
  font-weight: 600; /* Semi-bold for hierarchy */
  color: #1a1a1a; /* Darker than the body text for emphasis */
  font-size: 1rem; /* Exactly matches the detail text */
  display: inline; 
  
}

/* Individual class for project descriptions */
.project-detail {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #444; /* Standard description grey */
  margin-top: 16px; /* Spacing below the title */
  line-height: 1.6;
  max-width: 520px; /* Established reading width for ArtSix */
}

/* Logic to remove the border from the very last entry */
.top-entry:last-child {
  border-bottom: none;
  
  
}

.subsection {
  margin-bottom: 3rem;
  /* Large gaps between 1.1, 1.2 etc */
  padding-bottom: 2rem;
  /* Space before the line */
  border-bottom: 1px solid #f0f0f0;
  /* Subtle line */
}
.subsection:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sub-header {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 2rem;
  padding-left: 15px;
  border-left-width: 3px;
  border-left-style: solid;
  line-height: 1.3;
}

.sub-header.green-bar {
  border-left-color: #c4c4c4;
}

.sub-header.yellow-bar {
  border-left-color: #c4c4c4;
}

/* Yellow/Gold */

.content-entry {
  margin-bottom: 2rem;
  padding-left: 18px;
  /* "Even more well spaced" between items */
}


/* Flex container for the title row */
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  
  /* Move margin from link-red to here */
}

.link-red {
  color: #d94e3b;
  font-weight: 800;
  /* Extra Bold */
  font-size: 20px;
  margin-bottom: 0;
  margin-top: 0.5rem;
  font-weight: 500;
  /* Handled by entry-header */
  display: block;
}

.entry-links {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.outbound-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  text-decoration: none;
}

/* Status Tag Container */
.status-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 9px; /* Small, technical look */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px; /* Spacing before icons */
  height: 20px;
}

/* Black Phase Part (P1) */
.tag-phase {
  background-color: var(--card-black);
  color: white;
  padding: 0 6px;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Green Status Part (Complete) */
.tag-status {
  background-color: #B2F2BA;
  color: var(--card-black);
  padding: 0 8px;
  height: 100%;
  display: flex;
  align-items: center;
}

.tag-status-working {
  background-color: #fcce42;
  color: var(--card-black);
  padding: 0 8px;
  height: 100%;
  display: flex;
  align-items: center;
}

.tag-status-future {
  background-color: #e1e1e1;
  color: var(--card-black);
  padding: 0 8px;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Ensure header aligns everything vertically */
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Changed from baseline to center for the tags */
  margin-bottom: 0.4rem;
}

.entry-links {
  display: flex;
  align-items: center; /* Keeps tag and icons on same line */
  gap: 0.65rem;
}

.icon.globe { 
  -webkit-mask-image: url('./icons/globe.svg'); 
  mask-image: url('./icons/globe.svg'); 
}
.icon.eye { 
  -webkit-mask-image: url('./icons/eye.svg'); 
  mask-image: url('./icons/eye.svg'); 
}
.icon.github { 
  -webkit-mask-image: url('./icons/github.svg'); 
  mask-image: url('./icons/github.svg'); 
}
.icon.book { 
  -webkit-mask-image: url('./icons/book.svg'); 
  mask-image: url('./icons/book.svg'); 
}

.icon {
  width: 18px;
  height: 18px;
  background-color: #aaa; /* Default grey color */
  display: inline-block;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  transition: background-color 0.2s ease;
}

.icon.eye {
  width: 20px;
  height: 20px;
}

/* This specifically targets the background-color of the mask icon on hover */
.outbound-icon:hover .icon {
  background-color: var(--card-orange); /* Change this to the orange variable you defined */
}

/* Ensure the transition is smooth */
.icon {
  /* ... keep your existing styles ... */
  transition: background-color 0.2s ease;
}

.link-meta {
  color: #666;
  font-weight: 400;
  font-size: 0.95rem;
}

.entry-desc {
  font-size: 1rem;
  color: #444;
  margin-top: 3px;
  margin-bottom: 0;
  line-height: 1.6;
}

.text-dark {
  color: #333;
}

/* Mobile adjust */
@media (max-width: 600px) {

  #library h2,
  #depin-stack h2 {
    font-size: 2.5rem;
  }

  .accordion-header h3 {
    font-size: 1.5rem;
  }
}


/* About Page Specific Styles */

#about-hero {
  width: 100%;
  display: flex; 
  justify-content: center; /* Centers the 1440px container on the page */
  margin-bottom: var(--spacing-xl);
}

.banner-container {
  width: 1440px; 
  max-width: 95vw; 
  /* You can now reduce this height to hide more of the top sky/space */
  height: 800px; 
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0; 

  border: 8px solid #f8f8f8; /* Light gray border that matches your accordion lines */
  
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  /* CHANGE THIS: Pins the image to the bottom to hide the top area */
  object-position: bottom; 
  display: block;
}




/* Sample Page Specific Styles */

#sample-hero {
  width: 100%;
  display: flex; 
  justify-content: center; /* Centers the 1440px container on the page */
  margin-bottom: var(--spacing-xl);
}

.sample-banner-container {
  width: 1440px; 
  max-width: 95vw; 
  /* You can now reduce this height to hide more of the top sky/space */
  height: 600px; 
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0; 

  border: 8px solid #f8f8f8; /* Light gray border that matches your accordion lines */
  
}

.sample-banner {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  /* CHANGE THIS: Pins the image to the bottom to hide the top area */
  object-position: bottom; 
  display: block;
}


#face {
  width: 100%;
  display: flex; 
  flex-direction: column; 
  align-items: center;    /* Centers horizontally in Flexbox */
  justify-content: center; 
  margin-bottom: var(--spacing-xl);
  
  /* Safety: ensures the section itself takes full width */
  margin-left: auto;
  margin-right: auto;
}
/* Center the text and the tag together */





.face-banner-container {
  width: 800px; 
  max-width: 100vw; 
  /* You can now reduce this height to hide more of the top sky/space */
  height: auto;   
  border-radius: 20px;
  flex-shrink: 0;  
  
  
}

.face-banner {
  width: 100%;
  height: auto;
  /* CHANGE THIS: 'contain' ensures the full image is shown without cropping */
  object-fit: contain; 
  object-position: center; 
  display: block;
  margin-top: 30px;
  
}

/* Center the text and the tag together */
.header-content-center {
  display: flex;
  flex-direction: column;
  align-items: center;    /* This centers the tag horizontally */
  justify-content: center;
  margin-bottom: 2rem;
}

/* Status Tag Container */
.status-tag-header {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  /* Unify size and weight here */
  font-size: 14px; 
  font-weight: 600;
  /* Use uppercase for both if you want the high-technical look */
  text-transform: uppercase;
  border-radius: 6px;
  overflow: hidden;
  height: 28px;
  margin-bottom: 75px;
}
.tag-phase-header {
  background-color: #000000;
  color: #ffffff;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  /* Remove specific font-weight/text-transform here to inherit from parent */
}
/* Green Status Part (Complete) */
.tag-status-header {
  background-color: #B2F2BA;
  color: #000000;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.tag-status-header-working {
  background-color: #fcce42;
  color: #000000;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
}

/* Ensure header stacks elements vertically */


/* 1. Section Header - Aligned to Library Style */
/* 1. Section Header & Spacing */
#faces-grid {
  max-width: 900px; 
  margin: 0 auto var(--spacing-xl);
  border-top: 1px solid #eee; /* Matches Library separation */
  padding-top: var(--spacing-lg);
}

#faces-grid h2 {
  font-family: var(--font-serif);
  font-size: 3.5rem; /* Matches Library H2 scale */
  font-weight: 400;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.faces-intro {
  max-width: 580px; /* Locked reading width to match Library */
  margin: 0 auto 5rem;
  text-align: left;
}

.faces-intro p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* 2. Face Card Layout - Fixed 580px Width */
.face-card-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 4rem;
}

.face-card {
  display: grid;
  grid-template-columns: 300px 1fr; /* Fixed visual width, flexible text */
  gap: 2.5rem;
  width: 100%;
  max-width: 580px; /* MATCHES LIBRARY WIDTH */
  align-items: flex-start;
}

/* 3. Vertical Symmetry & Containment */
.face-card-visual, 
.face-card-content {
  height: 420px; /* Matches height for top-to-bottom alignment */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.face-card-visual {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 20px;
  padding: 1.5rem;
  overflow: hidden; /* CRITICAL: Keeps image inside the box */
  position: relative;
}
.face-card-header {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.face-project-title {
  font-family: var(--font-sans);
  font-size: 2.5rem; 
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #1a1a1a; /* Normal black color */
  margin: 0;
  padding-top: 15px;
  padding-bottom: 10px;
}

.phase-subtitle {
  font-size: 1.75rem; /* Reduced from 2.5rem */
  font-weight: 600;  /* Lighter weight for better hierarchy */
  color: #1a1a1a; /* Normal black color */     /* Subtle grey to distinguish from the title */
  line-height: 1.15;
  display: block;    /* Ensures it stays on its own line */
  margin-top: 0.75rem;
  letter-spacing: 0;  /* Resetting the tight tracking of the main title */
}


/* 4. Typography & Gradient */
.face-card-content h3.gradient-text {
  font-family: var(--font-sans);
  font-size: 2.5rem; /* Scaled for 580px card width */
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
  padding-top: 15px;
  padding-bottom: 10px;
}

.gradient-text {
  background: linear-gradient(135deg, #ff4d6d 0%, #ff8a5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 5. Image Constraint */
.isometric-img {
  width: 100%; /* Constraints width to the 240px visual box */
  max-height: auto; 
  object-fit: contain; /* Prevents stretching */
  margin-top: auto;
  display: block;
}

/* 6. Project Focus List */
.detail-focus {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #555555;
  margin-bottom: 0.75rem;
}

.project-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-detail-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-detail-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #555555;
  font-size: 1.2rem;
}

.list-title {
  font-weight: 600;
  color: #555555;
}

.list-sub {
  display: block;
  font-size: 0.9rem;
  color: #555555;
  margin-top: 2px;
}

.face-more-details {
  margin-top: 1.5rem; /* Space between the list and this new item */
  padding-top: 1rem;
  padding-bottom: 10px;
}

.details-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
  transition: color 0.2s ease;
}

.details-link:hover {
  color: var(--card-orange); /* Uses your existing orange variable on hover */
}

.details-icon {
  width: 18px; /* Sized to match the visual weight of the text */
  height: auto;
  transition: transform 0.2s ease;
}

.details-link:hover .details-icon {
  transform: translate(2px, -2px); /* Subtle "pop" effect on the arrow */
}

/* 7. Mobile View - Full Width Stack */
@media (max-width: 768px) {
  .face-card {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .face-card-visual, 
  .face-card-content {
    height: auto;
    min-height: 350px;
  }
}


/* EGI Page Specific Layout */
.egi-container {
  max-width: 900px !important;
  margin: 128px auto !important;
  padding: 0 72px;
}

.egi-article h1.hero-title {
  text-align: left;
  margin-bottom: 60px;
  font-size: 3.5rem;
}

.egi-section {
  margin-bottom: 80px;
}

.egi-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: var(--card-orange); /* Using your established orange */
  
  display: inline-block;
}

.egi-section h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 40px 0 20px 0;
  color: var(--card-orange); /* Using your established orange */
}

.lead-text {
  font-size: 1.25rem;
  margin: 0 0 0 0em;
  
}

.pha-lists {
  padding-left: 20px;
  list-style: none;         /* Removes bullet points */
  line-height: 1.5;         /* Increased line height for vertical breathing room */
  font-size: 1.1rem;       /* Larger text size for clear readability */
  color: #444;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.pha-lists li {
  margin-bottom: 0.5rem;    /* Extra space between specific phase entries */
}

.pha-lists strong {
  color: var(--color-text); /* Ensures phase labels use your primary text color */
}

.pha-lists strong {
  /* Ensuring the Phase labels stand out slightly more */
  color: var(--color-text);
  font-weight: 700;
}


.egi-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.egi-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-left: 20px;
  
}

.egi-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-text-light);
  font-size: 1.5rem;
  line-height: 1;
}

.egi-list li strong {
  color: var(--color-text);
}

.summary-box {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  border-left: 4px solid var(--card-orange);
  margin-top: 2rem;
}

/* EGI Function Spacing */
.egi-function {
  margin-bottom: 3rem;
  padding-left: 10px;
  
}

.egi-function h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

/* Vertical Blue Accent Bars from Screenshot */
.blue-accent {
  border-left: 3px solid #e5dac3; /* Using your --card-purple or a deep blue */
  padding: 0.0rem 0 0.0rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.blue-accent strong {
  color: var(--color-text);
  display: inline-block;
  margin-right: 5px;
}

/* Table Styling for EGI Page */
.table-container {
  overflow-x: auto; /* Ensures mobile friendliness */
  margin-top: 2rem;
  border-radius: 12px;
  border: 1px solid #eee;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 1rem;
  text-align: left;
}

.comparison-table th {
  background-color: #f8f8f8;
  color: var(--color-text);
  font-weight: 700;
  padding: 1.2rem;
  border-bottom: 2px solid #eee;
  font-family: var(--font-serif); /* Technical labels in Serif */
  font-size: 1.25rem;
}

.comparison-table td {
  padding: 1.2rem;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.5;
  color: #444;
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Subtle emphasis for the Feature column */
.comparison-table td:first-child {
  background-color: #ffffff;
  color: var(--color-text);
  width: 20%;
}

/* Responsive Table Adjustments */
@media (max-width: 768px) {
  .comparison-table th, .comparison-table td {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .egi-container {
    padding: 0 24px;
    margin: 64px auto !important;
  }
  .egi-article h1.hero-title {
    font-size: 2.5rem;
  }
}


/* Final technical link styling */
.vision-papers-footer {
  margin-top: 4rem; /* Standard separation from the table */
  padding-bottom: 2rem;
}

.technical-text {
  font-family: var(--font-sans);
  font-size: 16px !important; /* Forces common text size */
  color: #333333;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bracket-group {
  color: #999999; /* Subtle grey for the brackets */
}

.vision-link {
  color: var(--card-orange);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.vision-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}


/* Team Grid Layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* INCREASED vertical row spacing to 6rem, kept horizontal at 2rem */
  gap: 6rem 2rem; 
  margin-top: 1rem;
  width: 100%;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Profile Photo Styling */
.profile-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f3f3f3;
  border-radius: 6px;
  overflow: hidden;
  /* REDUCED margin to bring name closer to photo */
  margin-bottom: 1rem; 
  border: 1px solid #eee;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .profile-img {
  transform: scale(1.05); /* Subtle zoom on hover */
}

/* Typography for Members */
.member-name {
  font-family: var(--font-sans);
  font-size: 1.2rem !important;
  font-weight: 700;
  /* Orange color from your reference image */
  color: var(--card-orange); 
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  padding-left: 1rem;
}

.member-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem !important;
  color: var(--color-text-light);
  line-height: 1.4;
  margin: 0;
  padding-left: 1rem;
}

/* Responsive: 2 columns on tablets, 1 column on mobile */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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



/* ==========================================================================
   Mobile Responsive Adjustments (ArtSix EGI System)
   ========================================================================== */

@media screen and (max-width: 768px) {
  /* 1. Global Typography Scaling */
  :root {
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
  }

  body {
    font-size: 16px; /* Optimized base size for Inter on mobile */
    
  }

  h1, .hero-title {
    font-size: 2.5rem !important; /* Scaled down Newsreader for smaller viewports */
    line-height: 1.1;
    margin-bottom: 1.5rem;

  }



  /* 2. Container and Section Spacing */
  main, .egi-container {
    padding: 0 1.5rem !important;
    margin: 3rem auto !important;
    max-width: 100% !important;
  }

  /* 1. Target the list container in the top menu */
  .top-menu ul {
    width: 100%;             /* Allow the list to span the full width */
    justify-content: center; /* Center the whole group */
    gap: 2.5rem;             /* INCREASED: from 2rem to 2.5rem for better touch targets */
    flex-wrap: wrap;         /* Ensures items wrap gracefully if the screen is very narrow */
  }

  /* 2. Slightly increase link padding for a larger hit area */
  .top-menu a {
    padding: 0.5rem 0;       
    display: inline-block;
    font-size: 1rem; 
       /* Slight increase for legibility */
  }
  
  .header-main {
    display: flex;
    flex-direction: row; /* Keeps them side-by-side */
    align-items: center;    /* Centers items vertically */
    justify-content: center;
    padding-top: 1.5rem;
    gap: 1rem;
  }

  /* 2. Reset the H1 margin which often causes top-alignment issues */
  .header-main .hero-title {
    margin: 0 !important;   
    line-height: 1;         /* Ensures the text box doesn't have extra "leading" space */
    font-size: 2.2rem !important; /* Scaled for mobile */
    display: flex;
    align-items: center;    /* Secondary alignment check */
  }

  /* 3. Ensure the logo itself is behaving as a block within flex */
  .header-logo {
    width: 48px;            /* Slightly smaller for mobile screens */
    height: auto;
    margin: 0;
  }

  .subtitle-home {
    
    line-height: 1.65;
    margin-bottom: 2rem;
    padding-left: 20px;
    padding-right: 20px;
  }
   
  

  .egi-section {
    margin-bottom: 3rem;
  }

  .egi-section h2 {
    font-size: 1.5rem; /* Better balance for mobile headers */
  }

  /* 3. Navigation Adjustments */
  .top-menu ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* 4. Team Grid (Stacking to single column) */
  .team-grid {
    grid-template-columns: 1fr !important; /* Forces one member per row */
    gap: 3rem;
  }

  .member-name, .member-desc {
    padding-left: 0; /* Align text to the edge on mobile */
  }

  /* 5. Face Cards (Phase 1, 2, etc.) */
  .face-card {
    grid-template-columns: 1fr !important; /* Stack image/visual above content */
    max-width: 100%;
    gap: 1.5rem;
  }

  .face-card-visual, .face-card-content {
    height: auto !important; /* Let height grow with content */
    min-height: unset;
  }

  .face-card-header {
    font-size: 2rem;
  }

  /* 6. Comparison Tables (Enabling horizontal scroll for readability) */
  .table-container {
    margin-top: 1.5rem;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch; /* Smooth momentum scroll for iOS */
  }

  .comparison-table {
    min-width: 600px; /* Forces enough room for text so it doesn't "scrunch" */
  }

  .comparison-table th, .comparison-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }

  /* 7. Accordion Items (DePIN Stack) */
  #depin-stack {
    margin: 4rem 0 !important;
    padding: 0;
  }

  #depin-stack h2 {
    font-size: 2.5rem;
  }

  .accordion-header h3 {
    font-size: 1.5rem;
  }

  /* 8. Hero Banner and Containers */
  .banner-container, .face-banner-container, .sample-banner-container {
    height: 350px !important; /* Shorter banners for mobile scrolling */
    border-width: 4px;
  }
}

/* Extra Small Devices (Portrait Phones) */
@media screen and (max-width: 480px) {

  #library h2 {
    font-size: 2.5rem !important;
    line-height: 1.25;
  }
  
  .library-description {
    font-size: 1.75rem !important;
    padding-top: 20px;
  }
  
  h1, .hero-title {
    font-size: 2.1rem !important;
  }
  
  .egi-section h2 {
    font-size: 1.35rem;
  }

  .blue-accent {
    padding-left: 1rem;
    font-size: 0.95rem;
  }

  .subsection {
    border-bottom: 1px solid #a6a6a6;

  }


  /* 1. Stack the entire entry container vertically */
  .content-entry {
    display: flex;
    flex-direction: column;
    padding-left: 15px; /* Slight adjustment for mobile breathing room */
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
  }
  .content-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* 2. Forces the Header (Title) to the top */
  .entry-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    order: 1; /* First position */
  }

  /* 3. The description moves to the middle */
  .entry-desc {
    order: 2; /* Second position */
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    margin-top: 1rem;
    
  }

  /* 4. The links container (tags + icons) moves to the bottom */
  .entry-links {
    order: 3; /* Final position */
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
    padding-top: 0.5rem;
    
  }

  /* 5. Clean up spacing for the tags on mobile */
  .status-tag {
    margin-right: auto; /* Pushes icons to the right if desired, or keep as auto */
  }


}