:root {
  --bg: #0f1614;
  --ink: #e9eee9;
  --muted: #a6b5ab;
  --panel: rgba(16, 24, 22, 0.82);
  --accent: #5aa7ff;
  --accent-2: #f2a25f;
  --radius: 22px;
  --line: rgba(233, 238, 233, 0.16);
  --max-width: 1120px;
}

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

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  background:
    linear-gradient(rgba(7, 12, 11, 0.78), rgba(7, 12, 11, 0.86)),
    url("assets/Images/IMG_6812.webp") center / cover fixed no-repeat;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 999;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

.site-header,
.section,
.site-footer {
  width: min(94%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  background: rgba(8, 14, 13, 0.72);
  border-bottom: 1px solid rgba(233, 238, 233, 0.1);
}

.logo {
  font-family: "Source Serif 4", serif;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-left: clamp(0.4rem, 5vw, 3.8rem);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a.active {
  border-color: rgba(90, 167, 255, 0.38);
  background: rgba(90, 167, 255, 0.14);
}

.section {
  padding: 2.2rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  align-items: center;
}

.hero-copy {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 18px 35px rgba(19, 34, 24, 0.12);
}

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

h1,
h2,
h3 {
  font-family: "Source Serif 4", serif;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0.6rem 0 0.8rem;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

h3 {
  font-weight: 600;
}

p {
  max-width: 74ch;
}

.panel p + p {
  margin-top: 0.35rem;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.62rem 0.98rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b1512;
}

.btn-primary:hover {
  color: #0b1512;
  background: #458ddd;
}

.btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(16, 24, 22, 0.75);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.hero-media {
  position: relative;
  min-height: 480px;
}

.hero-main {
  width: 78%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(233, 238, 233, 0.36);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
}

.hero-accent {
  position: absolute;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(233, 238, 233, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.48);
}

.hero-accent.one {
  width: 42%;
  height: 34%;
  right: 0;
  top: 2%;
}

.hero-accent.two {
  width: 46%;
  height: 33%;
  right: 2%;
  bottom: 2%;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.section-image {
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.section-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(9, 15, 14, 0.72), rgba(9, 15, 14, 0.82));
}

.section-image > * {
  position: relative;
  z-index: 1;
}

.image-experience {
  background-image: url("assets/Images/IMG_8259.webp");
}

.image-achievements {
  background-image: url("assets/Images/IMG_8025.webp");
}

.image-contact {
  background-image: url("assets/Images/IMG_6111.webp");
}

.image-consulting {
  background-image: url("assets/Images/IMG_5506.webp");
}

.image-work {
  background-image: url("assets/Images/IMG_6072.webp");
}

.role-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.role-card {
  background: rgba(16, 24, 22, 0.7);
  border: 1px solid rgba(233, 238, 233, 0.14);
  border-radius: 16px;
  padding: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.role-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.role-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(90, 167, 255, 0.4);
}

.work-layout {
  margin-top: 1.35rem;
  display: grid;
  gap: 1.15rem;
}

.work-controls {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  position: sticky;
  top: 72px;
  z-index: 4;
  padding: 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(233, 238, 233, 0.14);
  background: rgba(9, 14, 13, 0.78);
  backdrop-filter: blur(8px);
}

.filter-btn,
#workSearch {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 22, 0.72);
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  font: inherit;
}

.filter-btn {
  cursor: pointer;
}

.filter-btn.active {
  background: rgba(90, 167, 255, 0.2);
  border-color: rgba(90, 167, 255, 0.46);
}

#workSearch {
  min-width: 190px;
}

.work-section h2 {
  margin-bottom: 0.65rem;
}

.work-section {
  border: 1px solid rgba(233, 238, 233, 0.14);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(10, 16, 15, 0.5);
}

.work-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.work-grid-compact {
  margin-top: 0.75rem;
  grid-template-columns: minmax(220px, 360px);
}

.work-card {
  background: rgba(16, 24, 22, 0.7);
  border: 1px solid rgba(233, 238, 233, 0.14);
  border-radius: 14px;
  padding: 0.85rem;
  display: grid;
  gap: 0.45rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.work-card h3 {
  font-size: 1.03rem;
}

.work-card a {
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(90, 167, 255, 0.4);
}

.work-card-subtle {
  opacity: 0.78;
  border-style: dashed;
  border-color: rgba(233, 238, 233, 0.26);
}

.work-card.is-hidden,
.video-card.is-hidden,
.work-section.is-hidden {
  display: none;
}

.pdf-preview {
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(233, 238, 233, 0.18);
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.3);
}

.pdf-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.video-card {
  background: rgba(16, 24, 22, 0.7);
  border: 1px solid rgba(233, 238, 233, 0.14);
  border-radius: 14px;
  padding: 0.85rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.video-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.03rem;
}

.video-embed {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(233, 238, 233, 0.18);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.88) contrast(1.06);
}

.video-embed::before,
.video-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-embed::before {
  background:
    repeating-conic-gradient(
      from 45deg,
      rgba(12, 14, 14, 0.44) 0deg 90deg,
      rgba(245, 248, 248, 0.08) 90deg 180deg
    );
  background-size: 18px 18px;
  mix-blend-mode: multiply;
  opacity: 0.62;
}

.video-embed::after {
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      90deg,
      rgba(8, 8, 8, 0.24) 0 1px,
      transparent 1px 18px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 18px
    );
  opacity: 0.36;
}

.video-card:hover .video-embed::before {
  opacity: 0.42;
}

.video-card:hover .video-embed::after {
  opacity: 0.22;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(90, 167, 255, 0.4);
}

.video-card.gig-priority {
  order: -1;
  border-color: rgba(90, 167, 255, 0.5);
  box-shadow: 0 10px 24px rgba(23, 66, 126, 0.24);
}

ul {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.placeholder {
  min-height: 58vh;
  display: grid;
  align-content: center;
  justify-items: start;
}

.site-footer {
  padding: 2rem 0 2.6rem;
  color: var(--muted);
}

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

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

@media (max-width: 860px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .logo {
    margin-left: 0;
    font-size: 1.25rem;
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-main {
    width: 100%;
  }

  .hero-accent.one,
  .hero-accent.two {
    width: 34%;
    height: 30%;
  }

  #workSearch {
    width: 100%;
  }

  .work-controls {
    position: static;
    top: auto;
  }
}
