/* ====== Global Reset ====== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background: #f5f5f7;
  color: #141414;
  font-family: "Lora", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", serif;
  line-height: 1.7;
}

/* ====== Layout ====== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Base (mobile): full width with padding */
.page-inner {
  width: 100%;
  max-width: 100%;
  padding: 2rem 1.5rem;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Tablet: moderate width */
@media (min-width: 768px) {
  .page-inner {
    width: 90%;
    max-width: 800px;
    padding: 3rem 2rem;
  }
}

/* Desktop: wider */
@media (min-width: 1024px) {
  .page-inner {
    width: 85%;
    max-width: 1100px;
    padding: 4rem 2rem;
  }
}

/* Large desktop: maximum */
@media (min-width: 1440px) {
  .page-inner {
    width: 80%;
    max-width: 1200px;
  }
}

/* Ultra-wide: cap at fixed width */
@media (min-width: 1920px) {
  .page-inner {
    width: 1200px;
  }
}

/* Card-style content area */

.content-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem 3rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

@media (min-width: 900px) {
  .content-card {
    padding: 3rem 3rem 3.5rem;
  }
}

/* ====== Typography ====== */

h1,
h2,
h3,
h4 {
  font-family: "Cardo", "Georgia", serif;
  font-weight: 700;
  color: #111111;
  margin-top: 0;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e2ea;
}

h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7a7a8c;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  color: #2a2a2f;
}

strong {
  font-weight: 600;
  color: #111111;
}

/* Small meta line under page title */

.meta {
  font-size: 0.9rem;
  color: #6b6b7a;
  margin-top: 0.35rem;
  margin-bottom: 1.5rem;
}

/* Lists */

ul {
  margin: 0 0 1.25rem 1.2rem;
  padding: 0;
  color: #2a2a2f;
}

li {
  margin-bottom: 0.4rem;
}

/* ====== Links & Accents ====== */

a {
  color: #1fa46a;
  text-decoration: none;
}

/* Gothic Grandma brand styling */
.gg-brand {
  font-family: "Cardo", "Georgia", serif;
}

span.gg-green,
strong .gg-green,
.gg-brand .gg-green {
  color: #52b788 !important;
}

.gg-glow {
  color: #111111;
  text-shadow: 0 0 10px rgba(82, 183, 136, 0.6), 0 0 20px rgba(82, 183, 136, 0.4);
}

.gg-glow .gg-green {
  color: #52b788 !important;
}

a:hover {
  text-decoration: underline;
}

/* Small pill label (e.g., "Overview") */

.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e3f6ed;
  color: #12764a;
  margin-bottom: 0.75rem;
}

/* ===== TECH TAGS (Universal) ===== */

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  display: inline-block;
  background: #2a2a2f;
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}

.tech-tag:hover {
  background: #1a6b4a;
  transform: translateY(-1px);
}

/* Tech tags in startup box */
.startup-box .tech-tags {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Tech tags in project cards */
.project-card .tech-tags {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8ecf0;
}

/* Subtle inline tech tags (for Currently section) */
.tech-tags-inline {
  margin-top: 0.75rem;
}

.tech-tags-inline .tech-tag {
  background: #f5f7f9;
  color: #5a5a6a;
  border: 1px solid #e0e8e4;
}

.tech-tags-inline .tech-tag:hover {
  background: #eef4f1;
  color: #1a6b4a;
  border-color: #1a6b4a;
}

/* Legacy tag-list (for detail pages) */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.tag {
  display: inline-block;
  background: #2a2a2f;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ====== Header & Nav ====== */

.site-header {
  border-bottom: 1px solid #e2e2ea;
  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .site-header-inner {
    width: 90%;
    max-width: 800px;
  }
}

@media (min-width: 1024px) {
  .site-header-inner {
    width: 85%;
    max-width: 1100px;
  }
}

@media (min-width: 1440px) {
  .site-header-inner {
    width: 80%;
    max-width: 1200px;
  }
}

@media (min-width: 1920px) {
  .site-header-inner {
    width: 1200px;
  }
}

.site-title {
  font-family: "Cardo", "Georgia", serif;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111111;
}

.site-title:hover {
  text-decoration: none;
  color: #1fa46a;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.9rem;
  color: #4b4b57;
}

.site-nav a:hover {
  color: #111111;
  text-decoration: none;
}

/* ====== Back link ====== */

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: #6b6b7a;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: #1fa46a;
  text-decoration: none;
}

/* ====== Sections ====== */

.section {
  margin-top: 1.75rem;
}

.section + .section {
  margin-top: 1.75rem;
}

/* Optional muted callout */

.callout {
  border-left: 3px solid #1fa46a;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #444456;
  font-size: 0.95rem;
}

/* ====== Homepage Specific ====== */

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-photo-container {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.5rem;
  border: 3px solid #e2e2ea;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.25);
}

.hero h1 {
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #1fa46a;
  margin-bottom: 0.5rem;
}

.hero-summary {
  color: #555555;
  max-width: 540px;
  margin: 0 auto;
}

/* Two-column hero on desktop */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    text-align: left;
    align-items: center;
  }

  .hero-photo-container {
    margin: 0;
    width: 200px;
    height: 200px;
  }

  .hero-right {
    display: flex;
    flex-direction: column;
  }

  .hero-summary {
    margin: 0;
    max-width: none;
  }
}

/* Highlight boxes for key sections */
.highlight-box {
  background: linear-gradient(135deg, #f8faf9 0%, #f0f4f2 100%);
  border: 1px solid #e0e8e4;
  border-left: 4px solid #1a6b4a;
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(26, 107, 74, 0.08);
}

.startup-box h2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a6b4a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-top: 0;
  border-top: none;
}

.startup-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2a2a2f;
  margin-top: 0;
  margin-bottom: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
}

.startup-box .company-name {
  color: #5a5a6a;
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.startup-box p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.startup-box .project-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #1a6b4a;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.startup-box .project-link:hover {
  border-bottom-color: #1a6b4a;
}

.startup-box .project-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e8e4;
}

.startup-box .stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.startup-box .stat strong {
  font-size: 1.1rem;
  color: #1a6b4a;
}

.startup-box .stat span {
  font-size: 0.75rem;
  color: #5a5a6a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

@media (max-width: 640px) {
  .startup-box .project-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Currently Section */
.currently-section {
  background: #f8f9fa;
  border-left: 4px solid #1fa46a;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.currently-section h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 1.2rem;
  color: #1fa46a;
  margin-bottom: 1rem;
}

.currently-section p {
  margin-bottom: 0.75rem;
}

.currently-section p:last-child {
  margin-bottom: 0;
}

/* Project Category Headers */
.project-category-header {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a7a8c;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e2ea;
}

/* Side-by-side sections (Independent R&D + Startup Experience) */
.side-by-side-sections {
  display: block;
}

.side-section .project-category-header {
  margin-top: 1.5rem;
}

.side-section .projects-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .side-by-side-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .side-section .project-category-header {
    margin-top: 0;
  }
}

/* Core Strengths - Categorized Pills */
.core-strengths {
  margin: 2rem 0;
}

.core-strengths h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.strengths-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .strengths-categories {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .category-pills {
    flex-direction: column;
    align-items: center;
  }

  .strength-pill {
    white-space: nowrap;
  }
}

.strength-category {
  text-align: center;
}

.category-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  margin-top: 0;
  color: #7a7a8c;
  border-top: none;
  padding-top: 0;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.strength-pill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.strength-pill:hover {
  transform: translateY(-1px);
}

/* Color variants */
.pill-product {
  background: #e3f6ed;
  color: #12764a;
  border-color: #1fa46a;
}

.pill-platform {
  background: #e8e8f0;
  color: #4a4a5a;
  border-color: #7a7a8c;
}

.pill-human {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

/* Section divider */
.section-divider {
  border: none;
  border-top: 1px solid #e2e2ea;
  margin: 2rem 0;
}

/* Design Philosophy section */
.design-philosophy {
  background: linear-gradient(135deg, #f8f8fa 0%, #f0f0f2 100%);
  border: 1px solid #e2e2ea;
  border-left: 3px solid #1fa46a;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.design-philosophy h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.design-philosophy > p {
  color: #444456;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.design-philosophy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-philosophy li {
  color: #2a2a2f;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
  padding-left: 0;
}

.design-philosophy li strong {
  color: #111111;
}

/* How I Build section */
.how-i-build {
  background: #ffffff;
  border: 1px solid #e2e2ea;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.how-i-build h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  border-bottom: 2px solid #1fa46a;
  padding-bottom: 0.5rem;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.how-i-build > p {
  color: #444456;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.how-i-build ul {
  margin: 0.75rem 0 0 1.2rem;
  padding: 0;
}

.how-i-build li {
  color: #2a2a2f;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.how-i-build li strong {
  color: #111111;
}

/* Technologies section */
.technologies-section {
  background: #0f172a;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.technologies-section h2 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-top: 0;
  border-top: none;
  margin-top: 0;
  color: #ffffff;
}

.tech-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-category {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.tech-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1fa46a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tech-label::after {
  content: ":";
}

.tech-list {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .tech-grid {
    gap: 0.6rem;
  }
  .technologies-section {
    padding: 1.25rem 1.5rem;
  }
}

/* What Makes My Work Different section */
.differentiators {
  margin: 2rem 0;
}

.differentiators h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.differentiators ul {
  margin: 0 0 0 1.2rem;
  padding: 0;
}

.differentiators li {
  color: #2a2a2f;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.differentiators li strong {
  color: #111111;
}

/* Design Principles section */
.design-principles {
  background: linear-gradient(135deg, #f8f8fa 0%, #f0f0f2 100%);
  border-left: 3px solid #1fa46a;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.design-principles h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.design-principles ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-principles li {
  color: #444456;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 0;
  font-style: italic;
  line-height: 1.5;
}

.design-principles li::before {
  content: none;
}

/* Combined Design Principles section (merged) */
.design-principles-combined {
  background: linear-gradient(135deg, #f8f8fa 0%, #f0f0f2 100%);
  border: 1px solid #e2e2ea;
  border-left: 3px solid #1fa46a;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.design-principles-combined h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #111111;
}

.design-principles-combined .principles-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.design-principles-combined .principles-column h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1fa46a;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.design-principles-combined ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-principles-combined li {
  color: #2a2a2f;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.design-principles-combined li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1fa46a;
}

.design-principles-combined li strong {
  color: #111111;
}

@media (max-width: 640px) {
  .design-principles-combined .principles-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Featured Project section */
.featured-project {
  background: linear-gradient(135deg, #000301 0%, #0a1a10 100%);
  border: 2px solid #1fa46a;
  border-radius: 12px;
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  text-align: center;
}

.featured-project h2 {
  color: #ffffff;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.featured-project p {
  color: #c0c0c8;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.featured-project .meta,
.featured-project .meta strong {
  color: #c0c0c8 !important;
}

.featured-cta {
  display: inline-block;
  color: #1fa46a;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-cta:hover {
  color: #52b788;
}

/* Project cards */

.projects-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

/* Two-column project grid on desktop */
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.project-card {
  background: #f8f8fa;
  border: 1px solid #e2e2ea;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.project-card:hover {
  border-color: #1fa46a;
  box-shadow: 0 4px 12px rgba(31, 164, 106, 0.1);
  text-decoration: none;
}

.project-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.project-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: #111111;
}

.project-card .project-date {
  font-size: 0.8rem;
  color: #6b6b7a;
  font-family: "IBM Plex Mono", monospace;
  flex-shrink: 0;
}

.project-card .project-role {
  font-size: 0.8rem;
  color: #1fa46a;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 0.5rem;
}

.project-card .project-type {
  font-size: 0.8rem;
  color: #1fa46a;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 0;
}

.project-card .project-org {
  font-size: 0.7rem;
  color: #7a7a8c;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e2ea;
}

/* Card badges - minimal, muted */
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.card-badges .tag {
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
  background: #e8e8ec;
  color: #5a5a6a;
  border-radius: 3px;
}

/* Research Portfolio section */
.research-portfolio-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid #e2e2ea;
}

.research-portfolio-section h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.research-portfolio-section .section-intro {
  font-size: 0.9rem;
  color: #6b6b7a;
  margin-bottom: 1.5rem;
}

.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-tab {
  background: #f0f0f2;
  border: 1px solid #e2e2ea;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  color: #5a5a6a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.portfolio-tab:hover {
  background: #e8e8ec;
  color: #1fa46a;
}

.portfolio-tab.active {
  background: #1fa46a;
  border-color: #1fa46a;
  color: white;
}

.portfolio-content {
  background: #f8f8fa;
  border: 1px solid #e2e2ea;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.portfolio-panel {
  display: none;
}

.portfolio-panel.active {
  display: block;
}

.portfolio-panel h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #111111;
}

.portfolio-panel .panel-meta {
  font-size: 0.75rem;
  color: #1fa46a;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 0.75rem;
}

.portfolio-panel > p {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.portfolio-panel ul {
  margin: 0.75rem 0 1rem 1.2rem;
  padding: 0;
}

.portfolio-panel li {
  font-size: 0.88rem;
  color: #444456;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.portfolio-panel .tag-list {
  margin-top: 1rem;
}

.portfolio-panel .tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

.panel-media-placeholder {
  margin-top: 1.25rem;
  padding: 2rem 1rem;
  background: #e8e8ec;
  border: 2px dashed #c0c0c8;
  border-radius: 8px;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  font-family: "IBM Plex Mono", monospace;
}

.panel-media {
  margin-top: 1.25rem;
  width: 60%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.panel-video-container {
  margin-top: 1.25rem;
  width: 60%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  position: relative;
}

.panel-video {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.panel-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

.panel-video-container.playing .panel-video-overlay {
  opacity: 0;
  pointer-events: none;
}

.portfolio-cta {
  display: inline-block;
  background: #f0f0f2;
  border: 1px solid #e2e2ea;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1fa46a;
  text-decoration: none;
  transition: all 0.15s ease;
}

.portfolio-cta:hover {
  background: #1fa46a;
  border-color: #1fa46a;
  color: white;
}

@media (max-width: 640px) {
  .portfolio-tabs {
    gap: 0.35rem;
  }
  .portfolio-tab {
    font-size: 0.65rem;
    padding: 0.4rem 0.5rem;
  }
}

/* Contact section */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.contact-links a {
  font-size: 0.9rem;
}

/* ====== Gallery Page ====== */

.gallery-grid {
  display: grid;
  gap: 1.25rem;
}

.gallery-item {
  background: #f8f8fa;
  border: 1px solid #e2e2ea;
  border-radius: 12px;
  padding: 1.5rem;
}

.gallery-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  font-family: "Cardo", "Georgia", serif;
  font-weight: 700;
}

.gallery-item .item-meta {
  font-size: 0.8rem;
  color: #1fa46a;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 0.75rem;
}

.gallery-item p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.gallery-item ul {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ====== MUSE Page Specific ====== */

.tool-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.tool-card {
  background: #f8f8fa;
  border: 1px solid #e2e2ea;
  border-radius: 12px;
  padding: 1.5rem;
}

.tool-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-card .tool-status {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.tool-card .tool-status.alpha {
  background: #e3f6ed;
  color: #12764a;
}

.tool-card .tool-status.beta {
  background: #fef3c7;
  color: #92400e;
}

.tool-card .tool-status.scoped {
  background: #f0f0f2;
  color: #6b6b7a;
}

.tool-card .tool-tagline {
  font-size: 0.85rem;
  color: #1fa46a;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.tool-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Project page organization label */

.page-org {
  font-size: 0.7rem;
  color: #7a7a8c;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.title-row h1 {
  margin-bottom: 0;
}

.page-subtitle {
  font-size: 0.9rem;
  font-style: italic;
  color: #1fa46a;
  font-family: 'Lora', Georgia, serif;
}

.label-underline {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #1fa46a;
  text-underline-offset: 2px;
}

.product-callout {
  background: #f0f7f4;
  border-left: 3px solid #1fa46a;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: #2a2a2f;
}

/* Logo in upper right of card */

.content-card {
  position: relative;
}

.page-logo {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e2ea;
}

@media (min-width: 900px) {
  .page-logo {
    top: 2.5rem;
    right: 2.5rem;
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 500px) {
  .page-logo {
    width: 56px;
    height: 56px;
    top: 1.5rem;
    right: 1.5rem;
  }
}

/* ====== Screenshots ====== */

.screenshot {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e2e2ea;
  margin: 1.5rem 0;
}

.screenshot-caption {
  font-size: 0.85rem;
  color: #6b6b7a;
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.screenshot-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  border: 2px dashed #ccc;
  background: #f8f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

/* ====== Collapsible Details ====== */

details {
  margin: 1rem 0;
  border: 1px solid #e2e2ea;
  border-radius: 8px;
  background: #f8f8fa;
}

details summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: #1fa46a;
  font-weight: 500;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "▶ ";
  font-size: 0.7rem;
  margin-right: 0.5rem;
  transition: transform 0.2s;
  display: inline-block;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details summary:hover {
  background: #f0f0f2;
}

details .details-content {
  padding: 1rem;
  border-top: 1px solid #e2e2ea;
  font-size: 0.9rem;
  color: #2a2a2f;
}

details .details-content p {
  margin-bottom: 0.75rem;
}

details .details-content p:last-child {
  margin-bottom: 0;
}

details .details-content code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  background: #e8e8ec;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
}

details .details-content pre {
  background: #0f172a;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.8rem;
  margin: 0.75rem 0;
}

details .details-content h4 {
  font-family: "Cardo", "Georgia", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

details .details-content h4:first-child {
  margin-top: 0;
}

details .details-content ul,
details .details-content ol {
  margin: 0.5rem 0 0.75rem 1.2rem;
}

/* ====== Footer ====== */

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #6b6b7a;
  font-size: 0.85rem;
  margin-top: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #1fa46a;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #52b788;
}

.site-footer p {
  margin: 0;
}

.site-footer p a {
  color: #6b6b7a;
}

.site-footer p a:hover {
  color: #1fa46a;
}

@media (max-width: 500px) {
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ====== Responsive ====== */

@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

/* ====== Glyph Demo Video - Hover to Play ====== */

.glyph-demo-section {
  margin: 2rem 0;
  max-width: 100%;
}

.glyph-demo-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border: 2px solid #1fa46a;
  max-width: 450px;
  margin: 0 auto;
}

.glyph-demo-video {
  width: 100%;
  height: auto;
  display: block;
}

.glyph-demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glyph-demo-container:hover .glyph-demo-overlay {
  opacity: 0;
}

.glyph-demo-container:focus {
  outline: 2px solid #1fa46a;
  outline-offset: 3px;
}

.glyph-demo-container:focus:not(:focus-visible) {
  outline: none;
}

.hover-hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  font-style: italic;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hover-hint .desktop-text {
  display: inline;
}

.hover-hint .mobile-text {
  display: none;
}

@media (max-width: 768px) {
  .hover-hint .desktop-text {
    display: none;
  }
  .hover-hint .mobile-text {
    display: inline;
  }
}

.glyph-demo-caption {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 400;
  color: #444456;
  font-family: "Lora", serif;
  line-height: 1.6;
}

.glyph-demo-caption strong {
  color: #111111;
  font-weight: 600;
}

.glyph-tech-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6b6b7a;
  font-style: italic;
}

.glyph-tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: #6b6b7a;
  margin-bottom: 0.5rem;
}

.glyph-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #2a2a2f;
  margin-bottom: 0.35rem;
}

.glyph-subtext {
  font-size: 0.9rem;
  color: #6b6b7a;
  opacity: 0.85;
  font-style: italic;
}
