/* ===============================
   1. THEME VARIABLES
   =============================== */

:root {
  /* Base font size */
  font-size: 16px;

  /* Colors */
  --color-lightest: #fff;
  --color-lighter: #f0f0f0;
  --color-darkest: #333;
  --color-dark: #50505040;
  
  /* Component Colors */
  --panel-bg: var(--color-lightest);
  --panel-text: var(--color-darkest);
  --subpanel-bg: #f8f8f8;
  --divider-color: #e5e5e5;
  --highlight-color: #872ce9;
  --highlight-text-color: var(--color-lightest);
  --highlight-color-rgb: 135, 44, 233;
  --highlight-surface: rgba(var(--highlight-color-rgb), 0.08);
  --headings-color: var(--color-darkest);
  
  /* Spacing & Shapes */
  --border-radius: 6px;
  
  /* Accessibility */
  --focus-color: #872ce9;
}

/* Dark theme variables - applied at the HTML level for global effect */
html[data-theme="dark"] {  
  --panel-bg: #32343b;
  --panel-text: var(--color-lighter);
  --subpanel-bg: var(--color-dark);
  --divider-color: #3d3f45;
  --highlight-color: #FFE146;
  --highlight-text-color: #000000;
  --highlight-color-rgb: 255, 225, 70;
  --highlight-surface: rgba(var(--highlight-color-rgb), 0.12);
  --headings-color: var(--color-lightest);
  --focus-color: #FFE146;
}

/* ===============================
   2. TYPOGRAPHY
   =============================== */

/* Typography Scale
   - Heading XL: 3.5rem (56px) - Major section headings
   - Heading L: 2.8rem (45px) - Sub-section headings
   - Heading M: 2rem (32px) - Card titles, medium headings
   - Heading S: 1.5rem (24px) - Small headings, timeline items
   - Body L: 1.2rem (19px) - Large body text
   - Body M: 1.1rem (17.6px) - Medium body text
   - Body: 1rem (16px) - Default body text
   - Body S: 0.9rem (14.4px) - Small body text
   - Caption: 0.85rem (13.6px) - Captions, meta text
   
   Line Heights:
   - Heading tight: 0.9 - For large headings
   - Heading normal: 1.2 - For smaller headings
   - Body: 1.6 - For most body text
   - Body loose: 1.7 - For more readable body text
   
   Transitions:
   - Quick: 0.2s ease - For small UI elements (buttons, links)
   - Standard: 0.3s ease - For most interactions (cards, hovers)
   - Slow: 0.5s ease - For larger animations (modals, panels)
   Shadows:
   - Light: 0 2px 8px rgba(0, 0, 0, 0.05) - Subtle elevation
   - Medium: 0 4px 15px rgba(0, 0, 0, 0.1) - Card hover states
   - Heavy: 0 10px 30px rgba(0, 0, 0, 0.1) - Prominent elements
*/

/* logos */
.gm-logo {
  width: 100%;
  max-width: 1.5rem;
}

.gm-barcode {
  opacity: 0.5;
  height: 1rem;
}

/* Heading Styles */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  color: var(--headings-color);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem); /* Heading M */
  font-weight: 400;
  color: var(--headings-color);
  margin-bottom: 1rem;
  line-height: 1.2; /* Heading normal */
  letter-spacing: 0.01em;
}

.section {
  margin-bottom: 2rem; /* Consistent spacing between sections */
}

/* Panel title styles - for backward compatibility */
.panel__title {
  /* Extend section-title styles */
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem; /* Heading XL */
  font-weight: 400;
  color: var(--headings-color);
  margin-bottom: 2.5rem;
  line-height: 0.9; /* Heading tight */
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Article card title styles */
.article-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; /* Heading M */
  font-weight: 400;
  color: var(--headings-color);
  margin-bottom: 1rem;
  line-height: 1.2; /* Heading normal */
  letter-spacing: 0.01em;
}

/* ===============================
   3. BASE STYLES
   =============================== */

/* Use border-box for all elements */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans Condensed', Arial, sans-serif;
  background-color: #1C1C1C;
  color: #fff;
  margin: 0;
  line-height: 1.6; /* Body */
  font-size: 1rem; /* Body - base font size */
}

/* ===============================
   THEME LAYOUT ENGINE PRIMITIVES
   =============================== */

/* Theme layout CSS custom property consumption */
.portfolio-theme-layout {
  display: grid;
  grid-template-areas: var(--portfolio-layout-areas);
  grid-template-columns: var(--portfolio-layout-columns);
  grid-template-rows: var(--portfolio-layout-rows);
  width: 100%;
}

/* Theme layout panel wrapper - optional column/section grouping */
.portfolio-theme-layout > .portfolio-layout__panel {
  grid-area: var(--portfolio-panel-area);
  min-height: 0;
  min-width: 0;
  overflow: visible;
}

/* Theme layout region wrapper - grid placement and overflow safety */
.portfolio-theme-layout .portfolio-shell__region {
  grid-area: var(--portfolio-region-area);
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  min-width: 0;
  overflow: visible;
}

[hidden] {
  display: none !important;
}
/* ===============================
   ACCESSIBILITY UTILITIES
   =============================== */

/* Visually hidden class for screen reader content — shared, not Default-specific */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* All panel component rules moved to Default theme: theme.css */
/* ===============================
   6. SERVICE COMPONENTS
   =============================== */
/* Service cards and grid layout */
.cards {
  margin: 0;
}

.cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 1500px) {
  .cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards__grid .card:nth-child(1) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .cards__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cards__grid .card:nth-child(1) {
    grid-column: auto;
  }
}

.card {
  position: relative;
  padding: 2rem;
  background: var(--subpanel-bg);
  border-radius: var(--border-radius);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Quick transition */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Heavy shadow */
}

.card__illustration {
  width: 100%;
  height: 7rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease-in-out;
  text-align: center;
}

.card:hover .card__illustration {
  transform: scale(1.02);
}

.card__illustration-text {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Specific illustration colors */
.card__illustration--waterfall { background-color: #fee2e2; color: #b91c1c; }
.card__illustration--iterative { background-color: #dcfce7; color: #166534; }
.card__illustration--gap { background-color: #fef3c7; color: #b45309; }
.card__illustration--integrated { background-color: #e0f2fe; color: #0369a1; }

/* Typographic card variant — no icon, no background illustration.
   Label + heading carry the visual weight. Top border provides the accent anchor. */
.card--typographic {
  align-items: flex-start;
  padding-top: 1.75rem;
}

.card--typographic .section-subtitle {
  text-align: left;
}

.card--typographic .card__text {
  text-align: left;
}

/* Card label — small mono tag above heading (e.g. 'AI-Native Product Systems') */
.card__label {
  display: inline-block;
  font-size: 0.65rem;
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--highlight-color);
  background: var(--highlight-surface);
  border-radius: 3px;
  padding: 2px 7px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

/* Card Icons */
.card__icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--highlight-color);
  border-radius: 50%;
  margin: 0rem auto 1.5rem;
  color: #000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.card:hover .card__icon {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.75;
}

.card__icon .service-icon {
  flex: 0 0 auto;
}

html[data-theme='light'] .card__icon .service-icon--black,
html[data-theme='dark'] .card__icon .service-icon--white {
  display: none !important;
}

html[data-theme='light'] .card__icon .service-icon--white,
html[data-theme='dark'] .card__icon .service-icon--black {
  display: block !important;
}

.card__illustration--siloed { background-color: #ffedd5; color: #c2410c; }
.card__illustration--unified { background-color: #ccfbf1; color: #0f766e; }
.card__illustration--confused { background-color: #f3e8ff; color: #7e22ce; }
.card__illustration--ai-native { background-color: #e0e7ff; color: #4338ca; }

.card__text {
  color: var(--panel-text);
  line-height: 1.6; /* Body */
  margin: 0 0 1rem 0;
  font-size: 1rem; /* Body */
}

/* ===============================
   7. COMPARISONS COMPONENT
   =============================== */
.comparisons {
  margin: 0;
}

.comparisons__row {
  display: flex;
  flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
  background-color: var(--subpanel-bg); /* Light gray background for all rows */
  border-radius: var(--border-radius);
  border: 1px solid var(--divider-color);
  margin-bottom: 2rem; /* Space between rows */
  overflow: hidden; /* Ensures border-radius is respected by children */
  transition: background-color var(--transition-standard) ease; /* Smooth theme transition */
}

.comparisons__column {
  flex: 1 1 50%; /* Each column takes up 50% of the row width */
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* Align content vertically */
  position: relative;
}

/* Add a visual separator for columns within a row, but not for the last one */
.comparisons__row > .comparisons__column:not(:last-child) {
  border-right: 6px solid var(--divider-color);
  transition: border-color var(--transition-standard) ease; /* Smooth theme transition */
}

.comparisons__illustration {
  width: 100%;
  height: 17rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 3);
  overflow: hidden;
  /* background-color: var(--subpanel-bg); */
  position: relative;
  padding: 0;
  box-sizing: border-box;
  will-change: transform;
  backface-visibility: hidden;
}

.comparisons__illustration img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin-top: 3rem;
}

.comparisons__column:hover .comparisons__illustration {
  transform: scale(1.03);
}

.comparisons__headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; /* Heading M - Larger size for better visibility */
  font-weight: 400;
  line-height: 1.2; /* Slightly tighter line height for headings */
  color: var(--headings-color);
  margin-top: 0;
  margin-bottom: 0.75rem;
  transition: color var(--transition-standard) ease; /* Smooth theme transition */
}

.comparisons__body {
  font-size: var(--font-size-body); /* Body */
  line-height: var(--line-height-body); /* 1.6 */
  color: var(--text-color);
  margin: 0;
  flex-grow: 1; /* Allows body to take up remaining space if columns have different heights */
  transition: color var(--transition-standard) ease; /* Smooth theme transition */
}

.comparisons__flag {
  width: 3rem;
  height: 3rem;
  position: absolute;
  top: 1.5rem;
  left: 50%; /* Move to the horizontal center */
  transform: translateX(-50%);
  z-index: 1;
}

/* Responsive adjustments for comparisons */
@media (max-width: 900px) { /* Adjusted breakpoint for better column stacking */
  .comparisons__row {
    flex-direction: column;
  }

  .comparisons__column {
    flex-basis: 100%; /* Columns take full width when stacked */
    padding: 5rem 1.5rem;
  }

  /* Remove border between stacked columns and add a bottom border instead */
  .comparisons__row > .comparisons__column:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--divider-color); 
  }
  
  /* Ensure last column in a stacked row doesn't have a bottom border from the rule above */
  .comparisons__row > .comparisons__column:last-child {
      border-bottom: none;
  }
}


@media (max-width: 768px) {
  .section-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
  }
  
  .comparisons__column {
    flex-basis: 100%;
    padding: 2rem 1.5rem;
  }
}

/* ===============================
   Audience List
   Editorial numbered rows replacing the illustration-based audience grid.
   =============================== */

.audience-list {
  margin-top: 0.5rem;
}

.audience-list__item {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 2rem 0;
  border-top: 1px solid var(--divider-color);
  transition: border-top-color 0.25s ease;
}

.audience-list__item:hover {
  border-top-color: var(--highlight-color);
}

.audience-list__tag {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight-color);
  opacity: 0.5;
  flex-shrink: 0;
  width: clamp(8rem, 13vw, 11rem);
  padding-top: 0.35rem; /* optically align with heading cap-height */
  transition: opacity 0.25s ease;
}

.audience-list__item:hover .audience-list__tag {
  opacity: 1;
}

.audience-list__body {
  flex: 1;
}

.audience-list__heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--headings-color);
  margin-bottom: 0.6rem;
}

.audience-list__desc {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--panel-text);
  opacity: 0.75;
  max-width: 620px;
}

@media (max-width: 560px) {
  .audience-list__item {
    gap: 1rem;
  }

  .audience-list__tag {
    width: 6rem;
    font-size: 0.62rem;
  }

  .audience-list__heading {
    font-size: 1.6rem;
  }
}

/* ===============================
   7. AUDIENCE COMPONENTS
   =============================== */
/* 'Who I Work With' section and audience cards */
.highlighted-section {
  padding: 5rem 2rem;
  background: var(--subpanel-bg);
  margin: 4rem 0;
}

.highlighted-section__content {
  max-width: 1200px;
  margin: 0 auto;
}

.highlighted-section__intro {
  font-size: 1rem;
  color: var(--panel-text);
  text-align: center;
  margin-bottom: 3rem;
  font-style: italic;
  opacity: 0.9;
}

.audience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.audience-card {
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Standard transition */
  border: 1px solid var(--border-color);
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Heavy shadow */
}

.audience-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease; /* Standard transition */
  color: var(--highlight-color);
}

.lucide-icon {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon--lg {
  width: 3rem;
  height: 3rem;
}

.audience-card:hover .audience-card__icon {
  transform: scale(1.1);
}

.audience-card__description {
  color: var(--panel-text);
  line-height: 1.6; /* Body */
  margin: 1rem 0 0;
  font-size: 1.1rem; /* Body M */
}

@media (max-width: 768px) {
  .highlighted-section {
    padding: 3rem 1.5rem;
  }
  
  .audience-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .audience-card {
    padding: 2rem 1.5rem;
  }
}

/* ===============================
   8. AUDIENCE ROWS LAYOUT
   =============================== */
.audience-rows {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.audience-row {
  display: grid;
  gap: 0;
  align-items: center;
  background: var(--subpanel-bg);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--divider-color);
}

/* Forward layout (default) */
.audience-row--forward {
  grid-template-columns: 2fr 1fr;
  grid-template-areas: "content image";
}

.audience-row--forward .audience-content {
  grid-area: content;
  padding: 2rem 0 2rem 4rem;
}

.audience-row--forward .audience-image {
  grid-area: image;
  justify-content: right;
}

.audience-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.audience-content {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.audience-description {
  color: var(--panel-text);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Reverse layout for alternate rows */
.audience-row--reverse {
  grid-template-areas: "image content";
  grid-template-columns: 1fr 2fr; /* Match the opposite ratio of default */
}

.audience-row--reverse .audience-content {
  grid-area: content;
  padding: 2rem 4rem 2rem 0;
}

.audience-row--reverse .audience-image {
  grid-area: image;
}

/* Rule moved to consolidated audience-row--forward section above */

/* Ensure consistent image container sizing */
.audience-image {
  position: relative;
  min-height: 200px; /* Set a minimum height for the image container */
  display: flex;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

/* Make sure images maintain aspect ratio */
.audience-illustration {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .audience-row,
  .audience-row--forward,
  .audience-row--reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "content" "image";
    text-align: center;
    padding: 2rem;
  }
  
  .audience-content {
    grid-area: content;
    align-items: center;
    padding: 0 1rem 1.5rem 1rem;
  }
  
  .audience-image {
    grid-area: image;
    margin-top: 1rem;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .audience-row--reverse .audience-content,
  .audience-row--reverse .audience-image,
  .audience-row--forward .audience-content,
  .audience-row--forward .audience-image {
    padding-left: 0;
    padding-right: 0;
  }

  .audience-row--forward .audience-image {
    justify-content: center;
  }
  
  .audience-illustration {
    max-width: 100%;
    max-height: auto;
    object-fit: contain;
  }
}

@media (max-width: 640px) {
  .audience-rows {
    gap: 2.5rem;
  }
  
  .audience-row,
  .audience-row--forward,
  .audience-row--reverse {
    padding: 1.5rem 1rem;
  }
  
  .audience-content {
    padding: 0 0 1rem 0;
  }
  
  .audience-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .audience-image {
    margin-top: 0.5rem;
  }
  
  .audience-illustration {
    max-width: 100%;
    max-height: 160px;
    margin: 0 auto;
  }
}

/* ===============================
   9. TESTIMONIAL COMPONENTS
   =============================== */
/* Testimonial cards and grid layout */

.testimonials {
  margin-top: 0;
}

.testimonials__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; /* Heading L */
  text-align: center;
  margin-bottom: 3rem;
  color: var(--panel-text);
  font-weight: 400;
  line-height: 0.9; /* Heading tight */
  letter-spacing: 0.02em;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 6rem;
}

.testimonial {
  padding: 0;
  border-radius: var(--border-radius);
}

.testimonial__text {
  font-size: 1rem; /* Body */
  line-height: 1.6; /* Body */
  margin-bottom: 1.5rem;
  color: var(--panel-text);
}

.testimonial__bio {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.testimonial__info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.9rem; /* Body S */
  line-height: 1.6; /* Body */
  color: var(--panel-text);
}

.testimonial__name {
  font-weight: bold;
  color: var(--headings-color);
  font-size: 0.9rem; /* Body S */
}


/* ===============================
   ACCESSIBILITY UTILITIES
   =============================== */

/* Visually hidden class for screen reader content — shared, not Default-specific */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* All project navigation rules moved to Default theme: theme.css */
/* ===============================
   11. ADMIN COMPONENTS
   =============================== */
/* Project edit and admin interface styles */
.project-edit-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem 2.5rem 2rem 2.5rem;
  background: #22252a;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Medium shadow */
}
.project-edit-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #FFE146;
}
.project-edit-desc {
  color: #aaa;
  margin-bottom: 2rem;
}
.project-edit-form .field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}
.project-edit-form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #FFE146;
}
.project-edit-form input[type="text"],
.project-edit-form textarea,
.project-edit-form select {
  background: #17181a;
  color: #fff;
  border: 1px solid #444;
  border-radius: var(--border-radius);
  padding: 0.5em 0.7em;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.project-edit-form textarea {
  min-height: 60px;
}
.project-edit-form input[type="file"] {
  background: none;
  color: #fff;
  margin-top: 0.2rem;
}
.project-edit-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* Admin Projects Page Centering */
.projects-admin-page-center {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem 2rem;
}

/* Admin Projects Table Styles */
.projects-admin-table-wrapper {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Light shadow */
  padding: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fafbfc;
}
.projects-table th, .projects-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}
.projects-table th {
  background: #f0f4f8;
  font-weight: 600;
  border-bottom: 2px solid #e0e0e0;
}
.projects-table tbody tr:nth-child(even) {
  background: #f8fafb;
}
.projects-table tbody tr:hover {
  background: #e3f2fd;
}
.actions-header, .actions-cell {
  text-align: right;
  white-space: nowrap;
}
.actions-cell {
  display: flex;
  gap: 0.5em;
  justify-content: flex-end;
  align-items: center;
}
/* ===============================
   12. BUTTONS & CONTROLS
   =============================== */
/* Standardized button styles with consistent transitions */

.btn {
  display: inline-block;
  padding: 0.3em 1em;
  border-radius: var(--border-radius);
  border: none;
  text-decoration: none;
  font-size: 0.95em;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.btn:focus {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
  outline: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-color);
}
.btn-danger {
  background: #e53935;
  color: #fff;
}
.btn-danger:hover {
  background: #b71c1c;
}
.btn-success {
  background: #43a047;
  color: #fff;
}
.btn-success:hover {
  background: #2e7031;
}
.btn-sm {
  font-size: 0.92em;
  padding: 0.25em 0.7em;
}
/* Form controls with accessible focus states */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
  padding: 0.5em 0.7em;
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--panel-bg);
  color: var(--panel-text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
  border-color: var(--focus-color);
}

.notice {
  margin-bottom: 2rem;
  padding: 0.75em 1.2em;
  background: #e3f7e0;
  color: #256029;
  border: 1px solid #b2dfdb;
  border-radius: var(--border-radius);
  font-size: 1.05em;
}


/* ===============================
   13. BIO COMPONENTS
   =============================== */
/* Bio panel and personal information section styles */

.bio-section {
  margin-bottom: 3rem; /* Add space between bio content blocks */
}

.bio-section:last-of-type {
  margin-bottom: 0; /* No bottom margin for the very last section before footers/illustrations */
}

.bio-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.bio-section__sub-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; /* Heading L */
  color: var(--headings-color);
  line-height: 0.9; /* Heading tight */
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.bio-section .skill-category h4 {
  font-family: 'IBM Plex Sans Condensed', sans-serif; /* IBM Plex Sans Condensed */
  font-size: 1.5rem; /* Heading S */
  font-weight: 600; /* Bolder */
  color: var(--panel-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2; /* Heading normal */
}

/* Avatar styles */
.avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.bio-avatar {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
}

.bio-badge {
    position: absolute;
    top: 0;
    left: 2rem;
    width: 35%;
    height: auto;
}

.bio-badge__text {
  margin-left: clamp(8.5rem, 21vw, 30rem);
  font-size: clamp(1.2rem, 2vw, 2.3rem);
  line-height: 1.15;
}

.bio-section p,
.bio-section ul,
.bio-section li {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 1.1rem; /* Body M */
  line-height: 1.7; /* Body loose */
  color: var(--panel-text);
  margin-bottom: 1rem; /* Default bottom margin for paragraphs and lists */
}

.bio-section ul {
  list-style-position: outside;
  padding-left: 1.5em; /* Standard indentation for bullets */
}

.bio-section ul li {
  margin-bottom: 0.5rem; /* Space between list items */
}

.bio-section a {
  color: #1976d2;
  text-decoration: none;
}

.bio-section a:hover {
  text-decoration: underline;
  color: #125ea2;
}

/* Placeholder emphasis style - less prominent than a strong accent */
.bio-section em {
  color: #757575; /* A muted grey for placeholders */
  font-style: italic;
  font-weight: normal;
}

/* Tech Stack Component */
/* Technology skills visualization */
.section__illustrations {
  width: 100%;
  text-align: center;
  margin: 3rem 0 2rem 0;
  position: relative;
}

.section__illustration {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease;
}

/* Show light theme image by default */
.section__illustration--light {
  opacity: 1;
}

.section__illustration--dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
}

/* Dark theme styles */
[data-theme="dark"] .section__illustration--light {
  opacity: 0;
}

[data-theme="dark"] .section__illustration--dark {
  opacity: 1;
}

/* Phase 4 utility: emphasis within bio copy ("before", "instead of rewriting...", "product generalist..."). */
em.em--strong {
  font-weight: 600;
}

/* ===============================
   Credibility Arcs
   (replaces before/after comparisons)
   =============================== */

.credibility-arcs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1500px) {
  .credibility-arcs {
    grid-template-columns: repeat(2, 1fr);
  }

  .credibility-arcs .credibility-arc:nth-child(1) {
    grid-column: 1 / -1;
  }

  .credibility-arcs .credibility-arc:nth-child(1) .credibility-arc__footer {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .credibility-arcs {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .credibility-arcs .credibility-arc:nth-child(1) {
    grid-column: auto;
  }
}

.credibility-arc {
  background: var(--subpanel-bg);
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s ease;
}

.credibility-arc__body {
  flex: 1;
  padding: 1.75rem 1.5rem 0;
}

.credibility-arc__footer {
  padding: 0 1.5rem 2rem;
  min-height: 14rem;
}

.credibility-arc:hover {
  border-color: var(--highlight-color);
}

.credibility-arc__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight-color);
  background: var(--highlight-surface);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.credibility-arc__heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--headings-color);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.credibility-arc__desc {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.95rem;
  color: var(--panel-text);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.credibility-arc__evidence {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid var(--divider-color);
  padding-top: 1.1rem;
}

.credibility-arc__evidence li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.82rem;
  color: var(--panel-text);
  opacity: 0.75;
  line-height: 1.4;
}

.credibility-arc__evidence li::before {
  content: '—';
  color: var(--highlight-color);
  opacity: 0.6;
  flex-shrink: 0;
  font-size: 0.75rem;
}

/* ===============================
   Career Timeline
   =============================== */

.career-timeline {
  background: var(--subpanel-bg);
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius);
  padding: 1.5rem 1.75rem;
}

.career-timeline__label {
  display: block;
  font-size: 0.7rem;
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--panel-text);
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.career-timeline__track {
  position: relative;
  height: 3px;
  background: var(--divider-color);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.career-timeline__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(to right, #e65100, #ffcc00, #ffffff, #4488ff, #8b5cf6);
}

.career-timeline__milestones {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.career-timeline__milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  min-width: 0;
}

.career-timeline__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--highlight-color);
  opacity: 0.6;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.career-timeline__dot--current {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--highlight-surface);
}

.career-timeline__year {
  font-size: 0.65rem;
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  color: var(--highlight-color);
  opacity: 0.8;
}

.career-timeline__event {
  font-size: 0.7rem;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  color: var(--panel-text);
  opacity: 0.65;
  line-height: 1.3;
  max-width: clamp(60px, 15vw, 90px);
}

/* ≤700px: drop event captions, tighten gaps */
@media (max-width: 700px) {
  .career-timeline__event {
    display: none;
  }
  .career-timeline__milestones {
    gap: 0.25rem;
  }
  .career-timeline__year {
    font-size: 0.5rem;
    line-height: 1.25;
    text-align: center;
  }
}

/* ≤480px: collapse to 4-point arc (Tech Speaker → Founder → AI Eng Focus → Now) */
@media (max-width: 480px) {
  .career-timeline {
    padding: 1.25rem 1rem;
  }
  .career-timeline__milestone--secondary {
    display: none;
  }
  .career-timeline__milestones {
    justify-content: space-between;
  }
}

/* ===============================
   PSTP 4-Stage Diagram (Bio — How I Work)
   =============================== */

.pstp-diagram {
  display: flex;
  align-items: stretch;
  margin-top: 2rem;
}

.pstp-stage {
  flex: 1;
  background: var(--subpanel-bg);
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pstp-stage:hover {
  border-color: var(--highlight-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pstp-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  color: var(--highlight-color);
  opacity: 0.35;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  padding-bottom: 1.5rem; /* optical: align with card midpoint */
}

.pstp-stage__num {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--highlight-color);
  margin-bottom: 0.5rem;
}

.pstp-stage__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--headings-color);
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 0 0 0.75rem;
}

.pstp-stage__divider {
  height: 1px;
  background: var(--divider-color);
  margin-bottom: 0.85rem;
}

.pstp-stage__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pstp-stage__steps li {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--panel-text);
  opacity: 0.65;
  line-height: 1.4;
}

.pstp-stage__steps li::before {
  content: '→ ';
  color: var(--highlight-color);
  opacity: 0.6;
}

.pstp-stage__theme {
  margin-top: 1.1rem;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--panel-text);
  opacity: 0.55;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .pstp-diagram {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .pstp-stage {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 180px;
  }
  .pstp-connector {
    display: none;
  }
}

@media (max-width: 440px) {
  .pstp-stage {
    flex: 1 1 100%;
  }
}

/* ===============================
   Process Diagram (How I Work)
   =============================== */

.process-diagram {
  margin-top: 2rem;
}

.process-diagram .flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-diagram .flow::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--highlight-color);
}

.process-diagram .step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}

.process-diagram .step:hover .step-body {
  border-color: var(--highlight-color);
}

.process-diagram .step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #505050ff;
  border: 1px solid var(--divider-color);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.process-diagram .step:has(.step-details[open]) .step-num {
  border-color: var(--highlight-color);
}

.process-diagram .step-num .num {
  font-size: 11px;
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  color: var(--highlight-color);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.process-diagram .step-body {
  flex: 1;
  background: var(--subpanel-bg);
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  transition: border-color 0.2s;
}

.process-diagram .step-details {
  width: 100%;
}

/* summary doubles as step-header */
.process-diagram summary.step-header {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
  position: relative;
  padding-right: 1.75rem;
  user-select: none;
}

.process-diagram summary.step-header::-webkit-details-marker {
  display: none;
}

/* expand / collapse indicator */
.process-diagram summary.step-header::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 13px;
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  color: var(--highlight-color);
  opacity: 0.5;
  transition: opacity 0.15s;
  line-height: 1.6;
}

.process-diagram .step-details[open] summary.step-header::after {
  content: '−';
  opacity: 1;
}

.process-diagram summary.step-header:hover::after {
  opacity: 1;
}

/* spacing below summary when open */
.process-diagram .step-details[open] .step-desc {
  margin-top: 10px;
}

.process-diagram .step-name {
  font-size: 1.15rem;
  font-weight: 400;
  font-family: 'Bebas Neue', sans-serif;
  color: var(--headings-color);
  letter-spacing: 0.03em;
  line-height: 1;
}

.process-diagram .step-label {
  font-size: 11px;
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  color: var(--panel-text);
  opacity: 0.65;
  letter-spacing: 0.04em;
}

.process-diagram .step-desc {
  font-size: 0.9rem;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  color: var(--panel-text);
  line-height: 1.6;
}

.process-diagram .step-output {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11px;
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  color: var(--panel-text);
  opacity: 0.55;
}

.process-diagram .step-output::before {
  content: '→';
  color: var(--highlight-color);
  opacity: 0.6;
}

.process-diagram .compound-note {
  margin-top: 2rem;
  padding: 20px 24px;
  background: var(--highlight-surface);
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.process-diagram .compound-note .icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.4;
  color: var(--highlight-color);
}

.process-diagram .compound-note p {
  font-size: 0.9rem;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  color: var(--panel-text);
  line-height: 1.65;
}

.process-diagram .compound-note strong {
  color: var(--highlight-color);
}

.process-diagram .tagline {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  color: var(--panel-text);
  opacity: 0.65;
  font-style: italic;
}

@media (max-width: 560px) {
  .process-diagram .flow::before { left: 22px; }
  .process-diagram .step-num { width: 44px; height: 44px; }
  .process-diagram .step-num .num { font-size: 10px; }
  .process-diagram .step-body { padding: 14px 16px; }
}

/* ===============================
   Row Divider — Thin
   =============================== */

.row-divider--thin {
  border: none;
  border-top: 1px solid var(--divider-color);
  margin: 3rem 0 2rem 0;
  opacity: 0.6;
}


/* ===============================
   14. TIMELINE COMPONENT
   =============================== */
/* Vertical timeline with standardized typography */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 3rem; /* Equal padding on both sides */
}

.timeline::before {
  content: '';
  position: absolute;
  width: 3px;
  background: linear-gradient(to bottom, var(--highlight-color), rgba(135, 44, 233, 0.3));
  top: 0;
  bottom: 0;
  left: 50%; /* Center the line */
  transform: translateX(-50%);
  border-radius: calc(var(--border-radius) / 2);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  padding-right: 3rem;
  margin-left: 0;
}

.timeline-item:nth-child(even) {
  padding-left: 3rem;
  margin-left: 50%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item__number {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  top: 0;
  background: var(--highlight-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-item__number {
  right: -1.75rem;
}

.timeline-item:nth-child(even) .timeline-item__number {
  left: -1.75rem;
}

.timeline-item__content {
  padding: 1.5rem 2rem;
  background: var(--panel-bg);
  position: relative;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color, #eaeaea);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .timeline {
    padding: 0 1.5rem;
  }

  .timeline::before {
    left: 2.65rem;
  }

  .timeline-item {
    width: 100%;
    margin-left: 0;
    padding-left: 5.5rem;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 5.5rem;
  }

  .timeline-item__number {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    left: 1.15rem !important;
    right: auto !important;
  }

  .timeline-item__content {
    padding: 1.25rem;
  }
}

/* Remove callout triangle and its shadow */
.timeline-item__content::before,
.timeline-item__content::after {
  display: none;
}

/* Remove hover effects */
.timeline-item__content:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-color, #eaeaea);
}

.timeline-item__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; /* Heading S */
  margin: 0 0 0.75rem 0;
  color: var(--headings-color);
  line-height: 1.2; /* Heading normal */
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
}

.timeline-item__title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--highlight-color);
  border-radius: calc(var(--border-radius) / 2);
  transition: width 0.3s ease; /* Standard transition */
}

.timeline-item:hover .timeline-item__title::after {
  width: 70px;
}

.timeline-item__description {
  color: var(--panel-text);
  line-height: 1.7; /* Body loose */
  margin: 0;
  font-size: 1rem; /* Body */
  opacity: 0.9;
}

/* Responsive Styles */


/* ===============================
   15. RESULTS CARDS
   =============================== */
/* Results/metrics cards with standardized typography and shadows */
.results-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.result-card {
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Standard transition */
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Heavy shadow */
}

.result-card__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--highlight-color);
  transition: transform 0.3s ease; /* Standard transition */
}

.result-card:hover .result-card__icon {
  transform: scale(1.1);
}

.icon--sm {
  width: 2rem;
  height: 2rem;
}

/* Theme-specific icons */
.icon--theme-aware {
  display: block;
}

.icon--light {
  display: none;
}

.icon--dark {
  display: none;
}

html[data-theme='light'] .icon--light {
  display: none;
}

html[data-theme='light'] .icon--dark {
  display: block;
}

html[data-theme='dark'] .icon--light {
  display: block;
}

html[data-theme='dark'] .icon--dark {
  display: none;
}

.result-card__outcome {
  font-size: 1.2rem; /* Body L */
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--headings-color);
  line-height: 1.6; /* Body */
}

.result-card__project {
  font-size: 1rem; /* Body */
  margin-bottom: 1rem;
  color: var(--panel-text);
  line-height: 1.6; /* Body */
}

.result-card__result {
  font-weight: 700;
  font-size: 1.5rem; /* Heading S */
  color: var(--highlight-color);
  line-height: 1.2; /* Heading normal */
}

/* ===============================
   Narwhale Pod / Publications Panel Styles
   =============================== */

.narwhale-header {
  text-align: center;
  margin-bottom: 5rem;
}

/* Rule for .narwhale-header__title removed as it's no longer used. */

.narwhale-logo-placeholder p {
  border: 2px dashed #35383F;
  padding: 2rem;
  margin: 1rem auto;
  max-width: 200px;
  min-height: 100px; /* Give it some min height */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #757575;
}

.narwhale-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--panel-text);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Two columns for larger screens */
@media (min-width: 768px) {
  .narwhale-intro {
    flex-direction: row;
    gap: 4rem; /* 4rem gap between columns as requested */
  }
  
  .intro-column {
    flex: 1;
    min-width: 0; /* Allows text to wrap properly */
  }
  
  .intro-column p {
    margin: 0;
    text-align: left;
    line-height: 1.6;
  }
}

/* Mobile styles */
@media (max-width: 767px) {
  .intro-column {
    margin-bottom: 1rem;
  }
  
  .intro-column:last-child {
    margin-bottom: 0;
  }
}

/* Phase 4 utility: narwhale header spacing (was inline `margin: 2rem 0 12rem 0`). */
.narwhale-header--spaced {
  margin: 2rem 0 12rem 0;
}

/* ===============================
   16. ARTICLE COMPONENTS
   =============================== */
/* Article cards and blog post styles with standardized typography */

.article-grid {
  display: grid;
  grid-template-columns: 1fr; /* Default to 1 column for mobile */
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background-color: var(--panel-bg); /* Use existing card bg or default */
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius); /* Changed from md to sm for consistency */
  padding: clamp(1.5rem, 2vw, 3rem) clamp(1rem, 1.5vw, 2rem); /* Use variable directly, removed fallback */
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Light shadow */
}

.article-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; /* Heading M */
  color: var(--headings-color);
  line-height: 1.2; /* Heading normal */
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.article-card__image-placeholder p {
  border: 2px dashed var(--divider-color);
  background-color: #f9f9f9;
  padding: 4rem 1rem;
  margin: 1rem 0;
  text-align: center;
  color: #757575;
  min-height: 150px; /* Ensure placeholder has some height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image {
  margin-bottom: 1rem;
}

.article-card__summary {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--panel-text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-card__link {
  margin-top: auto;
  align-self: flex-start;
}


/* Responsive adjustments for article grid */
/* Default for mobile */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Tablet portrait - single column */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .article-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Tablet landscape and desktop - 2 columns */
@media (min-width: 768px) and (orientation: landscape),
       (min-width: 1451px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ===============================
   Media Queries
   =============================== */


@media (max-width: 800px) {
  .portfolio-layout__container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: visible;
  }
  .gallery-grid__items {
    grid-template-columns: 1fr;
  }
}

/* Mobile: stacked layout, gallery is 2 columns */
@media (min-width: 801px) and  (max-width: 1020px) {
  .portfolio-layout__container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .gallery-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-nav-list .logo-nav-item {
    padding: clamp(1rem, 2vw, 2rem) 0;
  }
}

/* Tablet/small desktop: two-column gallery grid */
@media (min-width: 1021px) and (max-width: 1450px) {
  .portfolio-layout__container {
    grid-template-columns: 1fr 2fr;
  }
  .gallery-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Toast notification */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: black;
  color: white;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-size: 0.85rem;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Flash messages for server-side notifications */
.flash-messages {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  width: auto;
  max-width: 80%;
}

.flash-message {
  background-color: black;
  color: white;
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  animation: fadeInSlideDown 0.5s ease-out forwards, fadeOutSlideUp 0.5s ease-in forwards 4s;
}

.flash-message.notice {
  background-color: var(--theme-color-highlight);
  color: white;
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  animation: fadeInSlideDown 0.5s ease-out forwards;
}

.toast-notification.hide {
  animation: fadeOutSlideUp 0.5s ease-in forwards;
}

@keyframes fadeInSlideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeOutSlideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px);
    visibility: hidden;
  }
}

/* Narwhale Logo */
.narwhale-logo-container {
  text-align: center;
  margin: 1rem auto;
  max-width: 200px;
}

.narwhale-logo {
  display: block;
  margin: 3rem auto 4rem auto;
  max-width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

/* Light theme shows black logo */
html[data-theme='light'] .light-theme-logo {
  display: block;
}

html[data-theme='light'] .dark-theme-logo {
  display: none;
}

/* Dark theme shows white logo */
html[data-theme='dark'] .light-theme-logo {
  display: none;
}

html[data-theme='dark'] .dark-theme-logo {
  display: block;
}

/* Testimonial Quote */
.testimonial-quote {
  max-width: 1200px;
  margin: 3rem auto 4rem;
  padding: 8rem 2rem 2rem 2rem;
}

.testimonial-quote__content {
  position: relative;
  padding: 0 4rem 0 6rem;
  border-left: 6px solid var(--highlight-color);
}

.testimonial-quote__author-avatar {
  margin-right: 1rem;
}

.testimonial-quote__icon {
  position: absolute;
  left: 2rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.8;
}

.testimonial-quote__text {
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  line-height: 1.6;
  color: var(--panel-text);
  margin: 0 0 1.5rem;
  font-style: italic;
  font-weight: 400;
}

.testimonial-quote__text p {
  margin: 0;
  position: relative;
  z-index: 1;
}

.testimonial-quote__author {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--panel-text);
  opacity: 0.9;
}

.testimonial-quote__author-role {
  font-weight: 500;
  color: var(--highlight-color);
}

/* Base mobile styles */
@media (max-width: 768px) {
  .testimonial-quote__content {
    padding: 2.5rem 2rem 2.5rem 4.5rem;
  }
  
  .testimonial-quote__icon {
    left: 1.5rem;
    top: 0;
    width: 2rem;
    height: 2rem;
  }
  
  .testimonial-quote__text {
    font-size: 1.1rem;
    font-size: 1.2rem;
    line-height: 1.5;
  }
}

/* Logo Carousel */
.logo-carousel-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  height: 140px; /* Fixed height to contain absolutely positioned track */
  mask-image: linear-gradient(
    to right, 
    rgba(0, 0, 0, 0) 0%, 
    rgb(0, 0, 0) 5%, 
    rgb(0, 0, 0) 95%, 
    rgba(0, 0, 0, 0) 100%
  );
  padding: 0.5rem 0;
}

.logo-carousel-track {
  position: absolute; /* Remove from document flow so width doesn't affect parent */
  top: 0;
  left: 0;
  display: flex;
  width: max-content;
  will-change: transform;
  align-items: center;
  padding: 0.5rem 0;
  height: 100%;
}

.logo-item {
  flex: 0 0 auto;
  margin: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-item:hover {
  transform: translateY(-5px);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  min-width: 180px; /* Flexible width instead of fixed */
  max-width: 240px;
  width: auto;
  padding: 0 1rem;
}

.company-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Theme-based logo visibility */
.dark-theme-logo {
  display: none;
}

html[data-theme='dark'] .light-theme-logo {
  display: none;
}

html[data-theme='dark'] .dark-theme-logo {
  display: block;
}

/* Light theme shows light logos */
html[data-theme='light'] .light-theme-logo {
  display: block;
}

html[data-theme='light'] .dark-theme-logo {
  display: none;
}

/* @keyframes scroll removed - JS handles animation */

/* Hover pause removed - JS handles this via Stimulus controller */

/* ===============================
   Card Animation Tokens
   ===============================
   Interaction animations for the unified project card. These classes define
   motion and transition behavior only; layout, sizing, and cosmetic styling
   live in card_styles.css. Apply alongside a card-style class
   (e.g. .project-card-style--bordered).

   The unified markup gives every animation the same hooks:
     .project-card__side--front  → the image
     .project-card__side--back   → the info panel (transparent overlay by
                                    default; flip makes it an opaque surface)
     .project-card__side--back::before → the colored hover wash
   =============================== */

/* ---------- CSS Custom Properties (tunable per-widget) ---------- */
.project-card {
  --card-anim-duration: 0.25s;
  --card-anim-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Flip animation (3D rotateY) ----------
   The image side rotates away to reveal an opaque info side.
   Flip is on-screen movement, so ease-in-out is correct (starts slow,
   accelerates, decelerates to rest — matches the physics of rotation).
   280ms gives the 3D depth room to read without feeling slow. */
.card-animation--flip {
  perspective: 150rem;
  --flip-duration: 280ms;
  --flip-easing: cubic-bezier(0.77, 0, 0.175, 1); /* ease-in-out-quart */
}

.card-animation--flip .project-card__inner {
  transform-style: preserve-3d;
}

.card-animation--flip .project-card__side {
  backface-visibility: hidden;
  clip-path: inset(0 round var(--border-radius));
  transition: transform var(--flip-duration) var(--flip-easing);
}

.card-animation--flip .project-card__side--front {
  transform: rotateY(0);
}

/* The flip back side is an opaque panel with centered content. */
.card-animation--flip .project-card__side--back {
  transform: rotateY(180deg);
  justify-content: center;
  padding: 2rem;
  background-color: #2b2d33;
  color: var(--color-lightest);
}

.card-animation--flip .project-card__side--back::before {
  content: none;
}

.card-animation--flip .project-card__title,
.card-animation--flip .project-card__caption {
  color: inherit;
}

html[data-theme="light"] .card-animation--flip .project-card__side--back {
  background-color: #e9ecef;
  color: var(--color-darkest);
}

.card-animation--flip:hover .project-card__side--front,
.card-animation--flip:focus-within .project-card__side--front {
  transform: rotateY(-180deg);
}

.card-animation--flip:hover .project-card__side--back,
.card-animation--flip:focus-within .project-card__side--back {
  transform: rotateY(0);
}

/* ---------- Fade-in animation (lift + reveal an opaque info panel) ----------
   The info panel fades in as an opaque surface (matching the original card
   back), not a transparent overlay — so the dimmed image never shows the light
   card background through it. */
.card-animation--fade-in {
  transition: box-shadow var(--card-anim-duration) var(--card-anim-easing);
}

.card-animation--fade-in:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Front image starts zoomed-in (cropped by overflow:hidden) then zooms out
   to full-frame on hover — looks like pulling back from a close-up. */
.card-animation--fade-in .project-card__image {
  transform: scale(1.15);
  transition: transform var(--card-anim-duration) var(--card-anim-easing);
}

.card-animation--fade-in:hover .project-card__image,
.card-animation--fade-in:focus-within .project-card__image {
  transform: scale(1);
}

.card-animation--fade-in .project-card__side--back {
  opacity: 0;
  justify-content: center;
  padding: 2rem;
  background-color: #2b2d33;
  transition: opacity var(--card-anim-duration) var(--card-anim-easing);
}

html[data-theme="light"] .card-animation--fade-in .project-card__side--back {
  background-color: #e9ecef;
}

.card-animation--fade-in:hover .project-card__side--back,
.card-animation--fade-in:focus-within .project-card__side--back {
  opacity: 1;
}

/* Minimalist keeps its gradient-over-dimmed-image reveal instead of a solid panel. */
.card-animation--fade-in.project-card-style--minimalist .project-card__side--back {
  background-color: transparent;
  justify-content: flex-end;
  padding: clamp(0.8rem, 1vw, 1.2rem);
}

.card-animation--fade-in.project-card-style--minimalist .project-card__image {
  transition: opacity var(--card-anim-duration) var(--card-anim-easing),
              transform var(--card-anim-duration) var(--card-anim-easing);
}

.card-animation--fade-in.project-card-style--minimalist:hover .project-card__image,
.card-animation--fade-in.project-card-style--minimalist:focus-within .project-card__image {
  opacity: 0.3;
  transform: scale(1);
}

@media (max-width: 768px) {
  .card-animation--fade-in .project-card__side--back {
    opacity: 1;
  }

  .card-animation--fade-in.project-card-style--minimalist .project-card__side--front {
    opacity: 0.3;
  }
}

/* ---------- Overlay-reveal animation (bordered hover wash) ----------
   A colored wash + the info panel appear on hover. The wash color defaults to
   the highlight color; themes may override it (e.g. editorial accent). Timing
   lives here; the hover opacity target is shared across themes. */
.card-animation--overlay-reveal .project-card__side--back::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--highlight-color);
  transition: opacity var(--card-anim-duration) var(--card-anim-easing);
}

/* Minimalist's always-on gradient is replaced by the hover wash. */
.card-animation--overlay-reveal.project-card-style--minimalist .project-card__side--back::before {
  background: var(--highlight-color);
  opacity: 0;
}

/* Info hidden until hover. */
.card-animation--overlay-reveal .project-card__side--back > * {
  visibility: hidden;
}

.card-animation--overlay-reveal .project-card__title,
.card-animation--overlay-reveal .project-card__caption {
  transition: color var(--card-anim-duration) var(--card-anim-easing);
}

.project-card.card-animation--overlay-reveal:hover .project-card__side--back::before,
.project-card.card-animation--overlay-reveal:focus-within .project-card__side--back::before {
  opacity: 0.95;
  transition-duration: 0.16s;
}

.project-card.card-animation--overlay-reveal:hover .project-card__side--back > *,
.project-card.card-animation--overlay-reveal:focus-within .project-card__side--back > * {
  visibility: visible;
}

.project-card.card-animation--overlay-reveal:hover .project-card__title,
.project-card.card-animation--overlay-reveal:hover .project-card__caption,
.project-card.card-animation--overlay-reveal:focus-within .project-card__title,
.project-card.card-animation--overlay-reveal:focus-within .project-card__caption {
  color: var(--highlight-text-color);
}

.project-card.card-animation--overlay-reveal:hover .project-card__side--back .project-card__tag,
.project-card.card-animation--overlay-reveal:focus-within .project-card__side--back .project-card__tag {
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-darkest);
}

@media (max-width: 768px) {
  .card-animation--overlay-reveal .project-card__side--back > * {
    visibility: visible;
  }

  .card-animation--overlay-reveal .project-card__side--back::before {
    opacity: 0.95;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .card-animation--flip .project-card__side,
  .card-animation--fade-in,
  .card-animation--fade-in .project-card__side--front,
  .card-animation--fade-in .project-card__side--back,
  .card-animation--overlay-reveal .project-card__side--back::before,
  .card-animation--overlay-reveal .project-card__title,
  .card-animation--overlay-reveal .project-card__caption {
    transition: none;
  }
}
/* ===============================
   Card Style Tokens
   ===============================
   Cosmetic styling for the unified project card. Every project widget
   (Highlighted, Personal Ventures, Ecosystem, Work Gallery, Related,
   Spotlight) renders the same markup:

     <a class="project-card-link">
       <div class="project-card project-card-style--STYLE card-animation--ANIM">
         <div class="project-card__inner">
           <div class="project-card__side project-card__side--front"><img …></div>
           <div class="project-card__side project-card__side--back">
             <h3 class="project-card__title">…</h3>
             <p class="project-card__caption">…</p>
             <span class="project-card__tag">…</span>
           </div>
         </div>
       </div>
     </a>

   These classes define layout, sizing, color, and typography only; motion
   lives in card_animations.css. Apply alongside an animation class.
   The bordered look's border thickness and accent color stay theme-owned
   (keyed on .project-card-style--bordered in each theme stylesheet).
   =============================== */

/* ---------- Outer link ---------- */
.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.project-card-link:focus {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

.project-card-link:focus:not(:focus-visible) {
  outline: none;
}

.project-card-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-color);
}

/* ---------- Card container ---------- */
.project-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.project-card__inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.project-card__side {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: inherit;
}

/* Front side: the project image. */
.project-card__side--front {
  z-index: 0;
  background: var(--color-darkest);
  font-size: 0;
  line-height: 0;
}

.project-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Back side: the info panel. Transparent and overlaying the image by default;
   animations decide when/whether the info is revealed (and, for flip, give it
   an opaque surface). Content anchors to the bottom like a caption. */
.project-card__side--back {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(0.8rem, 1vw, 1.2rem);
}

.project-card__side--back > * {
  position: relative;
  z-index: 2;
}

.project-card__title {
  margin: 0 0 0.5rem;
  color: var(--headings-color);
}

.gallery-grid .project-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
}

.project-card__caption {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  color: var(--panel-text);
}

.project-card__tag {
  display: inline-block;
  align-self: flex-start;
  color: #000;
  background: var(--highlight-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.project-card__side--front .project-card__tag {
  position: absolute;
  left: clamp(0.8rem, 1vw, 1.2rem);
  bottom: clamp(0.8rem, 1vw, 1.2rem);
  z-index: 2;
  margin: 0;
  padding: 0.4em 0.85em;
  background: var(--highlight-color);
  color: var(--highlight-text-color);
  font-size: 0.65rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 1;
}

/* ---------- Bordered style ----------
   Border thickness, surface, and accent overlay color are theme-owned and
   live in each theme stylesheet keyed on .project-card-style--bordered. */

/* ---------- Minimalist style ---------- */
.project-card-style--minimalist {
  border-radius: 8px;
  background: var(--panel-bg);
}

/* Always-on legibility gradient behind the minimalist info panel. */
.project-card-style--minimalist .project-card__side--back::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.55) 38%, transparent 78%);
  pointer-events: none;
}

.project-card-style--minimalist .project-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  line-height: 1.2;
}

.project-card-style--minimalist .project-card__caption {
  color: rgba(255, 255, 255, 0.9);
}
/* ===============================
   Project Showcase Layout
   ===============================
   Layout styles for the unified Project Showcase component.
   Card cosmetics and animations live in card_styles.css and card_animations.css.
   =============================== */

.project-showcase {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.project-showcase__hero {
  width: 100%;
}

.project-showcase__hero .project-card {
  width: 100%;
  position: relative;
  height: 400px;
}

.project-showcase__grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.project-showcase__row {
  display: grid;
  grid-template-columns: repeat(var(--project-showcase-columns, 4), minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
  overflow: hidden;
}

.project-showcase__row .project-card {
  aspect-ratio: 1/1;
  min-width: 0;
}

.project-showcase--compact .project-showcase__grid {
  gap: 1.5rem;
}

.project-showcase__empty {
  padding: 2rem;
  text-align: center;
  background-color: var(--panel-background);
  border-radius: var(--border-radius);
  color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-showcase__grid {
    gap: 0.8rem;
  }

  .project-showcase__row {
    grid-template-columns: 1fr;
  }

  .project-showcase__row .project-card {
    aspect-ratio: 16/9;
    max-width: 100%;
    height: 230px;
    margin: 0 auto;
  }

  .project-showcase__hero .project-card {
    aspect-ratio: 1/1;
  }
}

/* Large devices (1024px and up) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .project-showcase__hero .project-card {
    height: 450px;
  }
}

/* Extra large devices (1440px and up) */
@media (min-width: 1440px) {
  .project-showcase__hero .project-card {
    height: 500px;
  }
}

/* ===============================
   Hero card — typography scale-up
   =============================== */

/* The hero card is 400–500px tall and full-width, so base card type sizes
   look undersized. Scale up title, caption, and tag relative to grid cards. */

.project-showcase__hero .project-card__side--back {
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

.project-showcase__hero .project-card__title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 0.6rem;
}

/* Minimalist style already sets Bebas Neue — keep that, just bump the size */
.project-showcase__hero .project-card-style--minimalist .project-card__title {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.project-showcase__hero .project-card__caption {
  font-size: 1.05rem;
  line-height: 1.5;
}

.project-showcase__hero .project-card__tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
}

/* Front-face tag (visible at rest on gallery/bordered styles) */
.project-showcase__hero .project-card__side--front .project-card__tag {
  font-size: 0.75rem;
  padding: 0.45em 1em;
}

/* ===============================
   Carousel Layout
   =============================== */
.project-showcase--carousel {
  margin: 3rem 0;
}

.project-showcase__slider {
  position: relative;
  width: 100%;
  min-height: 400px;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.project-showcase__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 400px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.project-showcase__slide.active {
  position: relative;
  opacity: 1;
  z-index: 1;
}

.project-showcase__slide .project-card {
  max-width: 400px;
  width: 100%;
  aspect-ratio: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .project-showcase__slider {
    min-height: 350px;
  }

  .project-showcase__slide {
    min-height: 350px;
    padding: 1rem;
  }

  .project-showcase__slide .project-card {
    max-width: 100%;
  }
}
/* ===============================
   17. THEME TOGGLE
   =============================== */
/* Theme toggle styles moved to application.css for global availability */

html[data-theme='dark'] .project-card-style--bordered .project-card__tag {
  color: black;
}

/* ===============================
   Featured Projects (Spotlight) Layout
   ===============================
   Spotlight cards now render the unified .project-card markup. Only the
   surrounding layout (a tall hero card + a grid of square thumbnails) is
   spotlight-specific and lives here. */
.featured-projects {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.featured-projects__main {
  width: 100%;
}

.featured-projects__main .project-card {
  width: 100%;
  position: relative;
  aspect-ratio: auto;
  height: 400px; /* Taller than standard square cards */
}

.featured-projects__secondary {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.featured-projects__secondary-row {
  display: grid;
  grid-template-columns: repeat(var(--featured-secondary-count, 4), minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
  overflow: hidden;
}

.featured-projects__secondary-row .project-card {
  aspect-ratio: 1/1; /* Perfect squares */
  min-width: 0; /* Prevent grid items from overflowing */
}

.featured-projects--compact-secondary .featured-projects__secondary {
  gap: 1.5rem;
}

.featured-projects__empty {
  padding: 2rem;
  text-align: center;
  background-color: var(--panel-background);
  border-radius: var(--border-radius);
  color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .featured-projects__secondary {
    gap: 0.8rem;
  }

  .featured-projects__secondary-row {
    grid-template-columns: 1fr;
  }

  .featured-projects__secondary-row .project-card {
    aspect-ratio: 16/9; /* Rectangle on mobile */
    max-width: 100%;
    height: 230px;
    margin: 0 auto;
  }

  /* Keep the main featured project as a square on mobile */
  .featured-projects__main .project-card {
    aspect-ratio: 1/1;
    height: auto;
  }
}

/* Large devices (1024px and up) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .featured-projects__main .project-card {
    height: 450px;
  }
}

/* Extra large devices (1440px and up) */
@media (min-width: 1440px) {
  .featured-projects__main .project-card {
    height: 500px;
  }
}
/* ===============================
   18. RESPONSIVE STYLES
   =============================== */
/* Consolidated media queries for responsive layouts */

/* Small devices (576px and up) */
@media (min-width: 576px) {
  /* No specific styles for this breakpoint yet */
}

/* Small-medium devices (640px and up) */
@media (min-width: 640px) {
  /* Bio Services Grid */
  .bio-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Results Cards */
  .results-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
  /* No specific styles for this breakpoint yet */
}

/* Medium devices (tablets, 769px to 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
  .testimonial-quote {
    padding: 8rem 1rem 2rem 1rem;
    margin: 3rem auto;
  }
  
  .testimonial-quote__content {
    padding: 0 3rem 0 5rem;
  }
  
  .testimonial-quote__text {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  }
  
  .testimonial-quote__author {
    font-size: 1.1rem;
  }
}

/* Large devices (1201px and up) */
@media (min-width: 1201px) {
  .testimonial-quote {
    padding: 12rem 4rem 4rem 4rem;
    max-width: 1400px;
  }
  
  .testimonial-quote__content {
    padding: 0 4rem 0 6rem;
  }
  
  .testimonial-quote__text {
    font-size: 1.4rem;
  }
}

/* Extra large devices (1450px and up) */
@media (min-width: 1450px) {
  .testimonial-quote {
    padding: 12rem 8rem 4rem 8rem;
  }
  
  .testimonial-quote__text {
    font-size: 1.5rem;
  }
}

/* Medium-large devices (1024px and up) */
@media (min-width: 1024px) {
  /* Results Cards */
  .results-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Bio Services Grid - specific range */
}

@media (min-width: 1024px) and (max-width: 1699px) {
  /* Bio Services Grid */
  .bio-services__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
  }
}

/* Extra large devices (1700px and up) */
@media (min-width: 1700px) {
  /* Bio Services Grid */
  .bio-services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile devices (1020px and down) */
@media (max-width: 1020px) {
  .timeline {
    padding: 0 1rem;
  }
  
  .timeline::before {
    left: 2.65rem;
  }
  
  .timeline-item {
    padding-left: 5.5rem;
    margin-bottom: 2.5rem;
  }
  
  .timeline-item__number {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    left: 0.25rem;
  }
  
  .timeline-item__content {
    padding: 1.5rem;
  }
  
  .timeline-item__title {
    font-size: 1.5rem;
  }
  
  .timeline-item__description {
    font-size: 1rem;
  }
  
  /* Highlighted Section */
  .highlighted-section {
    padding: 3rem 1.5rem;
  }
  
  .audience-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .audience-card {
    padding: 2rem 1.5rem;
  }
  
  .testimonial-quote__content {
    padding: 2.5rem 2rem 2.5rem 4.5rem;
  }
  
  .testimonial-quote__icon {
    left: 1.5rem;
    top: 0;
    width: 2rem;
    height: 2rem;
  }
  
  .testimonial-quote__text {
    font-size: 1.2rem;
    line-height: 1.5;
  }
}

/* Print styles */
@media print {
  body * {
    visibility: hidden;
  }
  
  #printable, #printable * {
    visibility: visible;
  }
  
  #printable {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* ===============================
   RECOMMENDATION COMPONENTS
   =============================== */

.recommendations {
  margin-top: 2rem;
  width: auto;
}

.recommendations__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--headings-color);
  margin-bottom: 1rem;
}

.recommendations-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

/* Card Wrapper */
.recommendation-card__wrapper {
  perspective: 1500px;
  margin-bottom: 0.5rem;
}

/* Card */
.recommendation-card {
  position: relative;
  height: 220px;
  aspect-ratio: 1; /* Makes it a perfect square */
}

.recommendation-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Card Sides */
.recommendation-card__side {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recommendation-card__side--front {
  background-color: var(--panel-bg);
}

.recommendation-card__side--back {
  background-color: var(--panel-bg);
  transform: rotateY(180deg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Card Content */
.recommendation-card .recommendation-card__side--front .recommendation-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommendation-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 1rem;
}

.recommendation-card__caption {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  display: none;
}

.recommendation-card__tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  display: none;
}

.recommendation-card__tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
}

.recommendation-card__link {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid #fff;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.recommendation-card__link:hover {
  background: #fff;
  color: var(--highlight-color);
}

/* Gradient Backgrounds */
.recommendation-card--gradient-green {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.recommendation-card--gradient-orange {
  background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
}

.recommendation-card--gradient-blue {
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

/* Hover Effects */
.recommendation-card:hover .recommendation-card__inner,
.recommendation-card:focus-within .recommendation-card__inner {
  transform: rotateY(180deg);
}

/* Desktop Layout */
@media (min-width: 1024px) {
  .recommendations {
    margin-top: 0;
    margin-left: 2rem;
    /* width: 180px; */
  }
}

/* All footer and project-not-found rules moved to Default theme: theme.css */

/* ===============================
   ECOSYSTEM CAROUSEL COMPONENT
   =============================== */

.ecosystem-section {
  margin: 3rem 0;
}

/* Hero Container */
.ecosystem-hero-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Individual Hero Cards */
.ecosystem-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 500px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.ecosystem-hero.active {
  position: relative;
  opacity: 1;
  z-index: 1;
}

/* Hero Background */
.ecosystem-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.ecosystem-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecosystem-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Hero Content */
.ecosystem-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
  padding: 3rem;
  color: var(--color-lightest);
}

.ecosystem-hero__badge {
  margin-bottom: 1rem;
}

.badge--industry {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-lightest);
}

.ecosystem-hero__client {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-lightest);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ecosystem-hero__caption {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
  color: var(--color-lightest);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ecosystem-hero__button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--highlight-color);
  color: var(--color-lightest);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ecosystem-hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Placeholder State */
.ecosystem-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--subpanel-bg) 0%, var(--panel-bg) 100%);
}

.ecosystem-hero__placeholder-content {
  text-align: center;
}

.ecosystem-hero__placeholder-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--panel-text);
}

.ecosystem-hero__placeholder-text {
  font-size: 1.125rem;
  color: var(--panel-text);
  opacity: 0.6;
}

/* Tabs Container */
.ecosystem-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

/* Individual Tab */
.ecosystem-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background-color: var(--panel-bg);
  border: 2px solid var(--divider-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.ecosystem-tab:hover {
  border-color: var(--highlight-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ecosystem-tab.active {
  background-color: var(--highlight-color);
  border-color: var(--highlight-color);
  color: var(--color-lightest);
}

.ecosystem-tab__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon--tab {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Theme-based icon visibility */
.icon--light {
  display: block;
}

.icon--dark {
  display: none;
}

[data-theme="dark"] .icon--light {
  display: none;
}

[data-theme="dark"] .icon--dark {
  display: block;
}

/* Active tab icon color override */
.ecosystem-tab.active .icon--tab {
  filter: brightness(0) invert(1);
}

.ecosystem-tab__label {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ecosystem-hero-container {
    min-height: 400px;
  }
  
  .ecosystem-hero {
    min-height: 400px;
  }
  
  .ecosystem-hero__content {
    padding: 2rem;
  }
  
  .ecosystem-hero__client {
    font-size: 2rem;
  }
  
  .ecosystem-hero__caption {
    font-size: 1rem;
  }
  
  .ecosystem-tabs {
    gap: 0.5rem;
  }
  
  .ecosystem-tab {
    min-width: 100px;
    padding: 0.75rem 1rem;
  }
  
  .ecosystem-tab__icon {
    width: 24px;
    height: 24px;
  }
  
  .ecosystem-tab__label {
    font-size: 0.75rem;
  }
}

/* ============================================
   Ecosystem Toggle (Admin Projects Table)
   ============================================ */

.ecosystem-cell {
  text-align: center;
  width: 80px;
}

.ecosystem-toggle {
  display: inline-block;
}

.ecosystem-toggle-btn {
  background: none;
  border: 2px solid var(--border-color, #e0e0e0);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.ecosystem-toggle-btn:hover {
  border-color: var(--primary-color, #007bff);
  background-color: var(--hover-bg, rgba(0, 123, 255, 0.05));
}

.ecosystem-toggle-btn.active {
  background-color: var(--success-color, #28a745);
  border-color: var(--success-color, #28a745);
}

.ecosystem-toggle-btn.active:hover {
  background-color: var(--success-hover, #218838);
  border-color: var(--success-hover, #218838);
}

.ecosystem-icon {
  stroke: white;
}

.ecosystem-icon-inactive {
  stroke: var(--text-muted, #6c757d);
}

.ecosystem-toggle-btn:hover .ecosystem-icon-inactive {
  stroke: var(--primary-color, #007bff);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .ecosystem-toggle-btn {
    border-color: var(--border-color-dark, #444);
  }
  
  .ecosystem-toggle-btn:hover {
    border-color: var(--primary-color-dark, #4dabf7);
    background-color: rgba(77, 171, 247, 0.1);
  }
  
  .ecosystem-icon-inactive {
    stroke: var(--text-muted-dark, #adb5bd);
  }
  
  .ecosystem-toggle-btn:hover .ecosystem-icon-inactive {
    stroke: var(--primary-color-dark, #4dabf7);
  }
}

/* ===============================
   CLIENT PROJECTS GRID COMPONENT
   =============================== */

/* Base grid container */
.client-projects-grid {
  margin: 3rem 0;
  padding: 0;
}

.client-projects-grid__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--headings-color);
  margin-bottom: 2rem;
  text-align: left;
}

.client-projects-grid__container {
  display: grid;
  gap: 2rem;
}

/* Full mode - responsive grid for all projects (ecosystem) */
.client-projects-grid--full .client-projects-grid__container {
  grid-template-columns: repeat(3, 1fr);
}

/* Compact mode - single row with 3 cards (recommendations) */
.client-projects-grid--compact .client-projects-grid__container {
  grid-template-columns: repeat(3, 1fr);
}

/* ===============================
   RESPONSIVE BREAKPOINTS
   =============================== */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
  .client-projects-grid--full .client-projects-grid__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .client-projects-grid--compact .client-projects-grid__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
  .client-projects-grid {
    margin: 2rem 0;
  }
  
  .client-projects-grid__title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .client-projects-grid--full .client-projects-grid__container,
  .client-projects-grid--compact .client-projects-grid__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
}
/*
 * Portfolio CSS Manifest — Phase 5 Decomposition
 * Modules loaded in cascade-critical order.
 * Do not reorder requires without verifying visual regression.
 *

























 */
