/* ==========================================================================
   DESIGN TOKENS — EDITORIAL BRUTALIST (Figma Make)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Palette */
  --bg-primary: #111111;
  --bg-secondary: #1a1a1a;
  --bg-card: #1b1b1b;
  --text-primary: #f0f0ee;
  --text-secondary: #c8c8c4;
  --text-muted: #a2a29e;
  --border-color: rgba(240, 240, 238, 0.09);
  --accent: #c8c8c4;

  /* Layout */
  --max-width: 1100px;
  --header-height: 56px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background-color 0.4s ease, border-color 0.4s ease;
  background: transparent;
}

#main-header.scrolled {
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-logo:hover {
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.375rem 0.75rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* "Work with me" button */
.btn-work {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.btn-work:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-work.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Mobile Menu Toggle */
.menu-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  width: 28px;
  height: 20px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION (HOME PAGE)
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-height);
}

.hero-container {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.hero-content {
  max-width: 100%;
}

/* Avatar */
.avatar-circle-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #c8f2c1;
  margin-bottom: 2.5rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Headline */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.07;
  color: var(--text-primary);
  margin-bottom: 2rem;
  max-width: 56rem;
}

.hero-title em,
.hero-title .italic {
  font-style: italic;
  color: var(--text-secondary);
}

/* Subtext */
.hero-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-color);
  align-self: center;
}

/* CTAs */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.8;
}

.btn-primary .btn-arrow {
  width: 14px;
  height: 14px;
}

.btn-underline {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(110, 110, 106, 0.3);
  letter-spacing: 0.02em;
}

.btn-underline:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   FEATURED / SELECTED WORK SECTION
   ========================================================================== */

.featured-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 6rem 0;
}

.section-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--text-primary);
}

.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.all-projects-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.all-projects-link:hover {
  color: var(--text-primary);
}

.all-projects-link svg {
  width: 14px;
  height: 14px;
}

/* Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.project-card:hover {
  border-color: rgba(200, 200, 196, 0.25);
}

.project-card-image {
  aspect-ratio: 16 / 9;
  background: #252525;
  overflow: hidden;
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(0.4);
  transition: all 0.7s ease;
}

.project-card:hover .project-card-image img {
  opacity: 0.85;
  transform: scale(1.04);
}

.project-card-content {
  padding: 1.5rem;
}

.project-meta {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.project-card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-card-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.badge {
  font-size: 0.67rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Coming soon overlay */
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .coming-soon-overlay {
  opacity: 1;
}

.coming-soon-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  background: rgba(17, 17, 17, 0.8);
}

/* ==========================================================================
   PROJECTS PAGE
   ========================================================================== */

.projects-page-section {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 6rem;
}

.page-header {
  margin-bottom: 3.5rem;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text-primary);
}

/* ==========================================================================
   RESUME PAGE
   ========================================================================== */

.resume-page-section {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 8rem;
}

.resume-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.resume-header h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.resume-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-download:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-download svg {
  width: 14px;
  height: 14px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
}

.timeline-entry {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 2.5rem;
}

/* Timeline dot */
.timeline-dot-col {
  width: 40px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
}

.timeline-dot-col::after {
  content: '';
  position: absolute;
  top: 1.125rem; /* starts right below the dot */
  bottom: -2.5rem; /* extends to meet the next dot */
  width: 1px;
  background: var(--border-color);
  z-index: 1;
}

.timeline-entry:last-child .timeline-dot-col::after {
  display: none;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 0 4px var(--bg-primary);
}

/* Timeline text layout (No cards) */
.timeline-card {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0 0 0.5rem 0;
}

.timeline-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.company-name {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  padding-left: 0; /* removed card border left */
}

.current-badge {
  font-size: 0.58rem;
  padding: 0.125rem 0.5rem;
  background: rgba(200, 200, 196, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(200, 200, 196, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.company-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.role-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.role-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.role-type-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #252525;
  padding: 0.125rem 0.5rem;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: none; /* removed top divider border */
  padding-top: 0;
}

.timeline-bullets p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.timeline-bullets p strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Two-column layout grid for Resume Page */
.resume-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Resume Sidebar (Awards, Education, Skills) */
.resume-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.resume-extras {
  border-top: none; /* removed old top border */
  padding-top: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.resume-extras .section-subtitle {
  margin-bottom: 1.5rem;
}

.award-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
}

.award-item + .award-item {
  margin-top: 0.75rem;
}

.award-marker {
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.award-item p {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.7;
}

.education-card {
  border: 1px solid var(--border-color);
  padding: 1.25rem;
}

.education-card .edu-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.education-card .edu-college {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.education-card .edu-degree {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.education-card .edu-year {
  font-size: 0.75rem;
  color: rgba(110, 110, 106, 0.6);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.skills-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-tag-list .badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-page-section {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 6rem;
}

.contact-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  max-width: 48rem;
}

.contact-headline em {
  color: var(--text-secondary);
}

.contact-subtext {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 32rem;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

/* Contact info items */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.contact-icon-box {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.contact-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.contact-info-value a {
  color: var(--text-primary);
}

.contact-info-value a:hover {
  color: var(--text-secondary);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(110, 110, 106, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(200, 200, 196, 0.4);
}

.contact-form textarea {
  resize: none;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: fit-content;
}

.btn-submit:hover {
  opacity: 0.8;
}

.btn-submit svg {
  width: 14px;
  height: 14px;
}

/* Success state */
.contact-success {
  border: 1px solid var(--border-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contact-success-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-success-icon svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

.contact-success h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-primary);
}

.contact-success p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.footer-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-container p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--text-primary);
}

.social-links svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > .reveal {
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  .menu-toggle-btn {
    display: flex;
    z-index: 1001;
  }

  .btn-work {
    display: none;
  }

  /* Hero */
  .hero-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-divider {
    height: 36px;
  }

  /* Project grid */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Featured header */
  .featured-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .all-projects-link {
    display: none;
  }

  .all-projects-link-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2rem;
  }

  .all-projects-link-mobile:hover {
    color: var(--text-primary);
  }

  .all-projects-link-mobile svg {
    width: 14px;
    height: 14px;
  }

  /* Resume */
  .resume-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .resume-sidebar {
    position: static;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Company logo integration in career timeline */
.company-logo {
  height: 24px;
  width: auto;
  max-height: 28px;
  display: inline-block;
  vertical-align: middle;
}

img.company-logo {
  opacity: 1;
}

@media (min-width: 769px) {
  .all-projects-link-mobile {
    display: none;
  }
}

/* ==========================================================================
   CASE STUDY STYLING
   ========================================================================== */

.case-study-page-section {
  padding: 4rem 0 8rem 0;
}

.case-study-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: var(--transition-smooth);
}

.case-study-back-link:hover {
  color: var(--text-primary);
}

.case-study-back-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.case-study-back-link:hover svg {
  transform: translateX(-4px);
}

.case-study-hero {
  margin-bottom: 4rem;
}

.case-study-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.case-study-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 850px;
  margin-bottom: 3.5rem;
}

/* Metadata Grid */
.case-study-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  gap: 2rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Case Study Body */
.case-study-content {
  max-width: 900px;
  margin: 0 auto;
}

.case-study-section {
  margin-bottom: 5rem;
}

.case-study-section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.case-study-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.case-study-section p strong {
  color: var(--text-primary);
}

.case-study-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  padding-left: 2rem;
  border-left: 2px solid var(--text-muted);
  margin: 3.5rem 0;
}

/* Side-by-side grid */
.case-study-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.case-study-grid-2col.reverse .grid-image-col {
  order: -1;
}

.grid-text-col p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.grid-image-col {
  display: flex;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 3rem;
  border: 1px solid var(--border-color);
}

.grid-image-col img {
  max-width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
}

/* Full Width Display */
.case-study-full-image {
  margin: 5rem 0;
  background: var(--bg-secondary);
  padding: 3rem;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

.case-study-full-image img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .case-study-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .case-study-grid-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .case-study-grid-2col.reverse .grid-image-col {
    order: 0;
  }
  
  .grid-image-col, .case-study-full-image {
    padding: 1.5rem;
  }
}

