/* ------------------------
   RESET & BASE
------------------------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e5e7eb;
  background-color: #050816 !important;
}

/* Scroll progress bar */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 999;
  background: linear-gradient(90deg, #0d6efd, #6610f2, #20c997);
  transition: width 0.1s linear;
}

/* tsParticles canvas */

#tsparticles {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* Content wrapper */

#page-content {
  padding-top: 4rem; /* leave space for nav */
}

/* Global section layout */

.section {
  position: relative;
  padding: 5rem 1.75rem;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section--hero {
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section--light {
  background: rgba(248, 250, 252, 0.97);
  color: #111827;
}

.section--dark {
  background: rgba(15, 23, 42, 0.9);
}

.section--deep {
  background: radial-gradient(circle at top left, #1f2937, #020617);
}

.section--alt {
  background: rgba(15, 23, 42, 0.05);
}

/* Section typography */

.section-title {
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title--center {
  text-align: center;
}

.section-paragraph {
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 52rem;
}

.section-paragraph--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-paragraph--muted {
  color: #6b7280;
}

.section-header {
  margin-bottom: 2.5rem;
}

/* ------------------------
   SIDE NAV DOTS
------------------------- */

.side-nav {
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 998;
}

.side-nav__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.side-nav__dot:hover {
  transform: scale(1.2);
  background: rgba(59, 130, 246, 0.9);
}

.side-nav__dot--active {
  transform: scale(1.6);
  background: #0d6efd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35);
}

/* Hide side nav on small screens */
@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}

/* ------------------------
   HERO
------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3rem;
  align-items: center;
}

.hero__text {
  max-width: 32rem;
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: rgba(209, 213, 219, 0.85);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(229, 231, 235, 0.92);
  max-width: 30rem;
}

/* Tagline fade animation */

.interactive-tagline {
  transition: opacity 0.2s ease;
}

.text-fade-out {
  opacity: 0;
}

.text-fade-in {
  opacity: 1;
}

/* Pills */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1.75rem;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.3rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.4);
  color: #e5e7eb;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.pill--tiny {
  padding: 0.2rem 0.7rem;
  font-size: 0.65rem;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: #0d6efd;
}

.pill--active {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  border-color: transparent;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.button--primary {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: #f9fafb;
  box-shadow: 0 0.75rem 2rem rgba(37, 99, 235, 0.6);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.1rem 2.6rem rgba(37, 99, 235, 0.9);
}

.button--ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.button--ghost:hover {
  background: rgba(15, 23, 42, 0.7);
}

.button--outline {
  border-color: #0f172a;
  background: transparent;
  color: #0f172a;
}

.button--outline:hover {
  background: #0f172a;
  color: #f9fafb;
}

.button--outline-light {
  border-color: rgba(209, 213, 219, 0.8);
  color: #f9fafb;
}

.button--outline-light:hover {
  background: rgba(31, 41, 55, 0.95);
}

/* Hero actions & status */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-chip {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-chip--green {
  background: rgba(16, 185, 129, 0.2);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.6);
}

.status-chip--outline {
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: rgba(209, 213, 219, 0.8);
}

/* Hero visual */

.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero-photo {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.hero-photo__frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1.75rem 3.5rem rgba(15, 23, 42, 0.8);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0.95));
}

.hero-photo__img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}

.hero-photo__badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #f9fafb;
  font-size: 0.7rem;
}

.hero-photo__notes {
  font-size: 0.8rem;
  color: #d1d5db;
  padding-left: 0.35rem;
}

.hero-photo__note-title {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.hero-photo__notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-photo__notes li::before {
  content: "• ";
  color: #0ea5e9;
}

/* Hero footer */

.hero__footer {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.9);
  text-decoration: none;
}

.scroll-indicator__icon {
  animation: hero-bounce 1.4s infinite;
}

@keyframes hero-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(4px);
  }
  60% {
    transform: translateY(2px);
  }
}

.particles-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.particles-toggle__label {
  font-size: 0.7rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ------------------------
   ABOUT
------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.section--light .section-paragraph {
  color: #4b5563;
}

.icon-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 1.5rem;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.icon-list__icon {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #22c55e;
  color: white;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* About cards */

.about-cards {
  display: grid;
  gap: 1rem;
}

.about-card {
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: #f9fafb;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.1);
  font-size: 0.92rem;
}

.about-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.about-card--accent {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #eff6ff;
}

/* ------------------------
   JOURNEY / TIMELINE
------------------------- */

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #0ea5e9, #6366f1);
  opacity: 0.6;
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 1.5rem 2.5rem;
}

.timeline__item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline__item:nth-child(even) {
  left: 50%;
}

.timeline__dot {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #0ea5e9;
  border: 3px solid #020617;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.4);
}

.timeline__content {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.25rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 1.4rem 3.4rem rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.timeline__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.timeline__title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

/* ------------------------
   SKILLS
------------------------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.skill-card {
  position: relative;
  height: 220px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.5), rgba(15, 23, 42, 0.95));
  box-shadow: 0 1.8rem 3.6rem rgba(15, 23, 42, 0.85);
  cursor: pointer;
  perspective: 1000px;
}

.skill-card__front,
.skill-card__back {
  position: absolute;
  inset: 0;
  padding: 1.1rem 1.25rem;
  backface-visibility: hidden;
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skill-card__front h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.skill-card__front p {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.skill-card__back {
  transform: rotateY(180deg);
  background: rgba(15, 23, 42, 0.95);
}

.skill-card:hover .skill-card__front {
  transform: rotateY(180deg);
}

.skill-card:hover .skill-card__back {
  transform: rotateY(360deg);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.chip--green {
  background: rgba(22, 163, 74, 0.2);
  border-color: rgba(34, 197, 94, 0.7);
}

.chip--soft {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.7);
}

.chip--amber {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.8);
}

/* Projects teaser */

.projects-teaser {
  margin-top: 1rem;
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.45), rgba(15, 23, 42, 0.98));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.projects-teaser__title {
  margin: 0 0 0.3rem;
}

.projects-teaser__text {
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* ------------------------
   LANGUAGES
------------------------- */

.lang-grid {
  display: grid;
  gap: 1rem;
  max-width: 540px;
  margin: 1rem auto 0;
}

.lang-item {
  background: #f9fafb;
  border-radius: 0.9rem;
  box-shadow: 0 0.9rem 2.4rem rgba(15, 23, 42, 0.1);
  padding: 0.75rem 0.9rem 0.9rem;
}

.lang-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.lang-item__level {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
}

.lang-bar {
  position: relative;
  height: 0.9rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.lang-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  color: #f9fafb;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.35rem;
  white-space: nowrap;
  transition: width 1s ease-out;
}

.lang-bar__fill--green {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.lang-bar__fill--amber {
  background: linear-gradient(90deg, #f97316, #ea580c);
}

/* ------------------------
   MOODBOARD / PHOTOS
------------------------- */

.moodboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2rem;
}

.moodboard-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Idea cards (photo ideas / placeholders) */

.idea-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.9);
  display: grid;
  grid-template-columns: 1.3fr 1.6fr;
}

.idea-card__image {
  min-height: 140px;
  background-size: cover;
  background-position: center;
}

.idea-card__image--workspace {
  background-image: linear-gradient(to bottom right, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.9));
}

.idea-card__image--swiss {
  background-image: linear-gradient(to bottom right, rgba(16, 185, 129, 0.25), rgba(15, 23, 42, 0.95));
}

.idea-card__body {
  padding: 1rem 1rem 1rem 1.15rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.idea-card__body h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
}

/* Idea cards now use your real photos as backgrounds */
.idea-card__image--grad {
  background-image: url("/images/grad.jpeg");
  background-size: cover;
  background-position: center;
}

.idea-card__image--mountains {
  background-image: url("/images/mountains.jpeg");
  background-size: cover;
  background-position: center;
}


/* Gallery */

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

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  cursor: zoom-in;
  box-shadow: 0 1.4rem 3rem rgba(15, 23, 42, 0.9);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.gallery-card__overlay {
  position: absolute;
  inset: 0;
  padding: 1.1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2));
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.gallery-card:hover .gallery-card__overlay {
  opacity: 1;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.lightbox--visible {
  display: flex;
}

.lightbox__inner {
  position: relative;
  max-width: 900px;
  width: 92%;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.9);
}

.lightbox__img {
  width: 100%;
  display: block;
}

.lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.6rem;
  border: none;
  background: transparent;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ------------------------
   CONTACT / CTA
------------------------- */

.contact {
  text-align: center;
}

.contact__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.contact__downloads {
  margin-top: 1.75rem;
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  min-width: 200px;
  background: #111827;
  border-radius: 0.85rem;
  box-shadow: 0 1.4rem 3.4rem rgba(15, 23, 42, 0.9);
  padding: 0.5rem 0;
  display: none;
  z-index: 10;
}

.dropdown-menu--open {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #1f2937;
}

/* ------------------------
   RESPONSIVE
------------------------- */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 2.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moodboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .idea-card {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline__item,
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 2rem;
  }

  .timeline__dot {
    left: 8px;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 1.25rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    justify-content: flex-start;
  }

  .hero__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #page-content {
    padding-top: 3.5rem;
  }
}


/* ------------------------
   ABOUT PAGE
------------------------- */

.about-page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-page-intro__text {
  max-width: 36rem;
}

.small-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.25rem;
  color: #9ca3af;
}

.about-badges {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Intro photo */

.about-page-intro__photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-photo-frame {
  border-radius: 1.5rem;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0.96));
  box-shadow: 0 1.75rem 3.5rem rgba(15, 23, 42, 0.85);
}

.about-photo-frame__img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}

.about-photo-frame__badge {
  position: relative;
  margin: 0.5rem 0.75rem 0.75rem;
  align-self: flex-start;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

.about-photo-caption {
  font-size: 0.85rem;
  color: #6b7280;
  max-width: 16rem;
}

/* Skills & strengths grid */

.about-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
}

.info-card {
  border-radius: 1.4rem;
  padding: 1.25rem 1.4rem;
  background: radial-gradient(circle at top left, rgba(31, 41, 55, 0.9), rgba(15, 23, 42, 0.98));
  box-shadow: 0 1.8rem 3.6rem rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.9rem;
}

.info-card--soft {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0.98));
}

.info-card--accent {
  background: linear-gradient(145deg, #0ea5e9, #6366f1);
  color: #eff6ff;
  box-shadow: 0 1.8rem 3.6rem rgba(15, 23, 42, 0.9);
}

.info-card__title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
}

.info-card__body p {
  margin: 0.2rem 0;
}

.info-card__line {
  color: #cbd5f5;
}

/* Info lists */

.info-list {
  list-style: none;
  padding-left: 0;
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.info-list__label {
  color: #e5e7eb;
}

.info-list__value {
  color: #9ca3af;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.info-list--checks li {
  justify-content: flex-start;
  gap: 0.4rem;
}

.info-list--checks li::before {
  content: "✓";
  font-size: 0.85rem;
  color: #bbf7d0;
}

/* Featured work cards */

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

.project-card {
  border-radius: 1.4rem;
  background: #f9fafb;
  box-shadow: 0 1.4rem 3rem rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-card__image {
  padding: 1.25rem;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__image--dark {
  background: #020617;
}

.project-card__image img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.project-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-card__title {
  font-size: 1rem;
  margin: 0;
}

.project-card__text {
  font-size: 0.9rem;
  color: #4b5563;
  flex-grow: 1;
}

/* Buttons inside project cards reuse .button styles but get subtle tweak */
.project-card .button {
  align-self: flex-start;
}

/* Responsive tweaks for About page */

@media (max-width: 1024px) {
  .about-page-intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
  }

  .about-info-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    grid-auto-rows: minmax(0, auto);
  }

  .about-info-grid .info-card:last-child {
    grid-column: 1 / -1;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .about-page-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-page-intro__photo {
    align-items: center;
  }

  .about-photo-caption {
    text-align: center;
  }

  .about-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ------------------------
   PORTFOLIO
------------------------- */

/* Intro */

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.portfolio-intro__info {
  max-width: 36rem;
}

.portfolio-intro__photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.portfolio-photo-frame {
  border-radius: 50%;
  overflow: hidden;
  width: 180px;
  height: 180px;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.35);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-photo-frame__img {
  width: 92%;
  height: auto;
  display: block;
  border-radius: 50%;
}

.portfolio-intro__tagline {
  font-size: 0.88rem;
  color: #6b7280;
  text-align: center;
}

/* Contact lines */

.portfolio-contact {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.portfolio-contact__line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.portfolio-contact__label {
  font-weight: 500;
  color: #6b7280;
  min-width: 4.5rem;
}

.portfolio-contact__value {
  color: #111827;
}

.portfolio-contact__value a {
  color: inherit;
}

/* Download dropdown (reuses dropdown styles) */

.portfolio-download {
  margin-top: 1.4rem;
}

/* Layout with sidebar */

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.6fr);
  gap: 2.5rem;
}

/* Sidebar / TOC */

.portfolio-layout__sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: flex-start;
}

.portfolio-toc {
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 1.6rem 3.4rem rgba(15, 23, 42, 0.94);
}

.portfolio-toc__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.portfolio-toc__link {
  display: block;
  font-size: 0.86rem;
  padding: 0.35rem 0;
  text-decoration: none;
  color: #e5e7eb;
  opacity: 0.85;
  border-radius: 0.6rem;
}

.portfolio-toc__link:hover {
  opacity: 1;
  background: rgba(31, 41, 55, 0.9);
}

/* Main content */

.portfolio-layout__content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Sections */

.case-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-section__header {
  max-width: 40rem;
}

.case-section__title {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.case-section__summary {
  font-size: 0.96rem;
  color: #6b7280;
}

/* Case cards */

.case-card {
  border-radius: 1.5rem;
  background: #f9fafb;
  box-shadow: 0 1.4rem 3rem rgba(15, 23, 42, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  padding: 1.4rem 1.5rem;
  align-items: center;
}

.case-card--compact {
  grid-template-columns: minmax(0, 1fr);
}

.case-card--vertical {
  grid-template-columns: minmax(0, 1fr);
  align-items: flex-start;
}

.case-card__body {
  font-size: 0.94rem;
  color: #111827;
}

.case-card__title {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.case-card__subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 0.6rem;
}

.case-card__impact {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Meta list */

.case-meta {
  margin: 0.4rem 0 0.3rem;
}

.case-meta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0;
}

.case-meta__row dt {
  font-weight: 600;
  color: #6b7280;
  min-width: 4rem;
  font-size: 0.85rem;
}

.case-meta__row dd {
  margin: 0;
  font-size: 0.9rem;
}

.case-meta__row a {
  color: #1d4ed8;
  text-decoration: none;
}

.case-meta__row a:hover {
  text-decoration: underline;
}

/* Case images / embeds */

.case-card__image {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-card__embed {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #020617;
}

/* Tableau container */

.tableau-embed {
  max-width: 900px;
  margin: 0.75rem auto 0;
}

/* Responsive */

@media (max-width: 1024px) {
  .portfolio-intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 2rem;
  }

  .portfolio-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio-layout__sidebar {
    position: static;
    order: -1;
  }

  .portfolio-toc {
    display: flex;
    gap: 1rem;
    align-items: center;
    overflow-x: auto;
  }

  .portfolio-toc__title {
    flex-shrink: 0;
  }

  .portfolio-toc__link {
    white-space: nowrap;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
  }

  .case-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio-photo-frame {
    width: 150px;
    height: 150px;
  }

  .case-card {
    padding: 1.1rem 1.1rem;
  }
}
