:root {
  --bg: #0d0a0c;
  --bg-elevated: #141013;
  --panel: #1a1418;
  --panel-2: #22191e;

  --maroon: #5d1725;
  --maroon-hover: #742132;
  --maroon-soft: rgba(93, 23, 37, 0.2);

  --text: #f3f0f1;
  --text-muted: #c8c1c4;
  --text-soft: #a79fa3;

  --border: rgba(193, 198, 200, 0.16);
  --border-strong: rgba(193, 198, 200, 0.28);

  --light-grey: #c1c6c8;
  --dark-grey: #77777b;

  --shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --container: 1120px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(93, 23, 37, 0.18), transparent 26%),
    linear-gradient(180deg, #0f0b0d 0%, #0d0a0c 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--light-grey);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition), transform var(--transition);
}

a:hover {
  color: #ffffff;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, #1b1418 0%, #120e10 100%);
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-link:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  background: var(--maroon);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.hero,
.page-hero {
  padding: 5.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--light-grey);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-text,
.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.04rem;
  max-width: 62ch;
}

.button-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.button-primary {
  background: var(--maroon);
  color: #ffffff;
  border-color: transparent;
}

.button-primary:hover {
  background: var(--maroon-hover);
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.quick-links.quick-links-buttons {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
}

.quick-links.quick-links-buttons li {
  display: block;
  margin: 0;
}

.quick-links.quick-links-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: none;
  transition: color var(--transition), border-color var(--transition),
    background-color var(--transition), transform var(--transition);
}

.quick-links.quick-links-buttons a:hover {
  color: #ffffff;
  border-color: var(--border-strong);
  background: rgba(93, 23, 37, 0.24);
  transform: translateY(-1px);
}

.section {
  padding: 2.5rem 0 4.5rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.about-grid,
.feature-grid,
.card-grid,
.media-grid {
  display: grid;
  gap: 1.2rem;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid,
.card-grid.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.three-up,
.media-grid {
  grid-template-columns: repeat(3, 1fr);
}

.panel,
.project-card,
.image-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel,
.project-card {
  padding: 1.35rem;
}

.panel h3,
.project-card h2 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  color: #ffffff;
}

.panel p,
.project-card p {
  margin: 0;
  color: var(--text-muted);
}

.image-card {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--dark-grey);
  border-style: solid;
  background:
    linear-gradient(180deg, rgba(93, 23, 37, 0.18) 0%, rgba(255, 255, 255, 0.015) 100%),
    #151114;
  text-align: center;
}

.image-card span {
  border: 1px dashed rgba(193, 198, 200, 0.18);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--light-grey);
  background: rgba(255, 255, 255, 0.02);
}

.large-placeholder {
  min-height: 420px;
}

.project-image {
  min-height: 180px;
  margin-bottom: 1rem;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--light-grey);
  font-weight: 600;
}

.text-link:hover {
  color: #ffffff;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tag-list li {
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: var(--maroon-soft);
  border: 1px solid rgba(193, 198, 200, 0.12);
  color: var(--light-grey);
  font-size: 0.86rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 2.2rem;
  color: var(--text-soft);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-wrap p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .feature-grid,
  .card-grid.three-up,
  .card-grid.two-up,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .large-placeholder {
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .nav-wrap {
    min-height: 70px;
  }

  .site-nav {
    gap: 0.4rem;
  }

  .nav-link {
    padding: 0.62rem 0.85rem;
    font-size: 0.9rem;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;

  border: 3px solid rgba(193, 198, 200, 0.35);

  box-shadow:
    0 0 0 2px rgba(93, 23, 37, 0.35),
    0 20px 40px rgba(0,0,0,0.45);
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.experience-hero .hero-text {
  max-width: 52rem;
}

.experience-list {
  display: grid;
  gap: 2rem;
}

.experience-company {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow: var(--shadow);
}

.company-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.company-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-meta h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #ffffff;
}

.company-duration {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.role-timeline {
  position: relative;
  margin-left: 1.1rem;
  padding-left: 1.8rem;
}

.role-timeline::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(193, 198, 200, 0.34) 0%,
    rgba(193, 198, 200, 0.12) 100%
  );
}

.role-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.role-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.82rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--light-grey);
  box-shadow: 0 0 0 4px rgba(93, 23, 37, 0.22);
}

.role-card {
  padding: 0.1rem 0 0;
}

.role-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.18rem;
}

.role-date,
.role-location,
.role-skills {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.role-location {
  margin-bottom: 0.8rem;
}

.role-skills {
  margin-top: 0.9rem;
  color: var(--light-grey);
  font-weight: 600;
}

.role-bullets {
  margin: 0.95rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.role-bullets li {
  margin-bottom: 0.45rem;
}

.single-role::before {
  bottom: auto;
  height: calc(100% - 0.6rem);
}

@media (max-width: 700px) {
  .company-header {
    align-items: flex-start;
  }

  .role-timeline {
    margin-left: 0.4rem;
    padding-left: 1.4rem;
  }

  .timeline-marker {
    left: -1.42rem;
  }
}

.experience-banner-section {
  padding: 3rem 0 2rem;
}

.experience-banner-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow: var(--shadow);
}

.experience-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.experience-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 10, 12, 0.08) 0%, rgba(13, 10, 12, 0.18) 100%);
  pointer-events: none;
}

.experience-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-profile-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 0 1.75rem 1.75rem;
  margin-top: -58px;
  z-index: 2;
}

.experience-profile-image-wrap {
  width: 172px;
  height: 172px;
  flex-shrink: 0;
  border-radius: 999px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(193,198,200,0.94) 100%);
  box-shadow:
    0 0 0 3px rgba(93, 23, 37, 0.35),
    0 18px 32px rgba(0, 0, 0, 0.36);
}

.experience-profile-image {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.experience-profile-copy {
  padding-bottom: 0.35rem;
}

.experience-profile-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.experience-profile-copy .hero-text {
  max-width: 52rem;
}

@media (max-width: 900px) {
  .experience-cover {
    height: 180px;
  }

  .experience-profile-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin-top: -44px;
    padding: 0 1.25rem 1.25rem;
  }

  .experience-profile-image-wrap {
    width: 132px;
    height: 132px;
  }

  .experience-profile-copy {
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  .experience-banner-section {
    padding-top: 2rem;
  }

  .experience-cover {
    height: 150px;
  }

  .experience-profile-row {
    margin-top: -34px;
    padding: 0 1rem 1rem;
  }

  .experience-profile-image-wrap {
    width: 108px;
    height: 108px;
    padding: 4px;
  }
}