:root { --portfolio-dark-panel: #171713; }

/* Project navigation and archive additions. The original portfolio styles remain the visual baseline. */
.desktop-nav a[href="projects.html"] { color: var(--ink); font-weight: 700; }

.home-project-grid { align-items: stretch; }
.home-project-grid .more-project-card {
  grid-column: span 2;
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 34px 36px;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.more-project-copy .eyebrow { color: rgba(255,255,255,.45); }
.more-project-copy h3 { margin: 0; max-width: 620px; font-size: 42px; line-height: .96; letter-spacing: -.055em; }
.more-project-copy p { max-width: 620px; margin: 18px 0 0; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.7; }
.more-project-card .button { margin: 0; white-space: nowrap; background: var(--accent); color: var(--ink); border-color: var(--accent); }

.experience-section { border-top: 1px solid var(--line); background: rgba(255,255,255,.26); }
.experience-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; }
.experience-column, .certification-panel { border: 1px solid var(--line); background: rgba(255,255,255,.52); }
.experience-column { padding: 10px 24px; }
.experience-item { display: grid; grid-template-columns: 98px minmax(0,1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.experience-item:last-child { border-bottom: 0; }
.experience-meta { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.experience-item h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.04em; }
.experience-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.experience-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.experience-tags span { padding: 6px 8px; border: 1px solid rgba(17,17,15,.11); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.certification-panel { position: relative; overflow: hidden; padding: 28px; background: var(--ink); color: #fff; }
.certification-panel::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(183,255,60,.35), transparent 67%); pointer-events: none; }
.certification-panel .eyebrow { color: rgba(255,255,255,.52); }
.certification-panel h3 { position: relative; z-index: 1; margin: 0; max-width: 420px; font-size: 38px; line-height: .98; letter-spacing: -.055em; }
.certification-intro { position: relative; z-index: 1; margin: 18px 0 26px; max-width: 430px; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.7; }
.certification-placeholder { position: relative; z-index: 1; padding: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.certification-placeholder strong { display: block; margin-bottom: 5px; font-family: "Space Grotesk", Arial, sans-serif; font-size: 14px; }
.certification-placeholder span { color: rgba(255,255,255,.48); font-size: 11px; line-height: 1.6; }
.certification-note { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.certification-note::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 4px rgba(183,255,60,.12); }

.projects-page .site-header { position: sticky; }
.projects-hero { padding: 110px 0 90px; border-bottom: 1px solid var(--line); }
.projects-hero-copy { max-width: 980px; }
.page-back { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.projects-hero h1 { margin: 0; max-width: 880px; font-family: "Space Grotesk", Arial, sans-serif; font-size: clamp(3.6rem, 7vw, 6.8rem); line-height: .9; letter-spacing: -.065em; }
.projects-hero h1 em { color: var(--accent); font-style: normal; }
.projects-hero-copy > p:last-child { max-width: 720px; margin: 30px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.projects-section { padding: 110px 0 120px; }
.projects-category + .projects-category { margin-top: 110px; }
.projects-category-header { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 60px; align-items: end; margin-bottom: 44px; }
.projects-category-header h2 { margin: 0; font-family: "Space Grotesk", Arial, sans-serif; font-size: clamp(2.6rem, 4.8vw, 4.8rem); line-height: .94; letter-spacing: -.06em; }
.projects-category-header > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.project-grid-all .project-card { min-height: 0; }
.project-grid-all .project-body p { min-height: 0; }
.projects-footer { border-top: 1px solid var(--line); padding: 70px 0; }
.projects-footer-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 30px; border: 1px solid var(--line); background: rgba(255,255,255,.42); }
.projects-footer-card h3 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.projects-footer-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.visual-orange { background: #ffd9a8; }
.visual-blue { background: #b7d8ff; }
.visual-rose { background: #ffd0da; }
.mail-console, .money-console, .voice-console { position: absolute; left: 9%; right: 9%; top: 23%; bottom: 12%; padding: 14px; border: 1px solid rgba(17,17,15,.14); background: rgba(255,255,255,.70); box-shadow: 0 18px 44px rgba(17,17,15,.08); }
.mail-toolbar, .mail-row, .money-console > div, .voice-console > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mail-toolbar { padding-bottom: 10px; border-bottom: 1px solid rgba(17,17,15,.1); font-size: 10px; font-weight: 700; }
.mail-toolbar strong { padding: 6px 8px; background: var(--ink); color: #fff; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.mail-list { display: grid; margin-top: 8px; }
.mail-row { padding: 11px 0; border-bottom: 1px solid rgba(17,17,15,.08); font-size: 9px; }
.mail-row strong { font-size: 9px; }
.mail-row span { color: var(--muted); }
.money-console { display: grid; gap: 7px; background: rgba(17,17,15,.62); border-color: rgba(255,255,255,.12); }
.money-console > div { padding: 10px; border: 1px solid rgba(255,255,255,.11); color: #fff; background: rgba(255,255,255,.04); }
.money-console strong { font-size: 8px; letter-spacing: .08em; }
.money-console span { color: rgba(255,255,255,.48); font-size: 8px; }
.voice-console { display: grid; align-content: center; gap: 22px; background: rgba(255,255,255,.72); }
.voice-console strong { font-family: "Space Grotesk", Arial, sans-serif; font-size: 14px; letter-spacing: -.03em; }
.voice-console span { color: var(--muted); font-size: 9px; }
.voice-dot { width: 7px; height: 7px; display: inline-block; border-radius: 999px; background: #5f9800; margin-right: 4px; }
.voice-wave { display: flex !important; justify-content: center !important; align-items: center; gap: 5px !important; }
.voice-wave i { width: 5px; border-radius: 999px; background: var(--ink); }
.voice-wave i:nth-child(1){height:18px}.voice-wave i:nth-child(2){height:34px}.voice-wave i:nth-child(3){height:24px}.voice-wave i:nth-child(4){height:46px}.voice-wave i:nth-child(5){height:28px}.voice-wave i:nth-child(6){height:38px}.voice-wave i:nth-child(7){height:22px}.voice-wave i:nth-child(8){height:31px}

@media (max-width: 920px) {
  .home-project-grid .more-project-card { grid-column: auto; grid-template-columns: 1fr; }
  .experience-layout { grid-template-columns: 1fr; }
  .experience-column { padding: 8px 20px; }
  .projects-category-header { grid-template-columns: 1fr; gap: 30px; }
  .projects-hero { padding: 86px 0 70px; }
}

@media (max-width: 700px) {
  .home-project-grid { display: flex !important; flex-direction: row !important; align-items: stretch; gap: 16px !important; overflow-x: auto !important; overflow-y: visible !important; width: calc(100% + 28px) !important; margin-left: -14px !important; padding: 6px 14px 22px !important; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .home-project-grid::-webkit-scrollbar { display: none; }
  .home-project-grid .project-card, .home-project-grid .project-card.featured, .home-project-grid .more-project-card { flex: 0 0 86vw !important; width: 86vw !important; min-width: 0 !important; scroll-snap-align: start; scroll-snap-stop: always; }
  .home-project-grid .project-card.featured { display: block; }
  .home-project-grid .more-project-card { min-height: 280px; padding: 28px; }
  .more-project-copy h3 { font-size: 34px; }
  .more-project-card .button { justify-self: start; }
  .experience-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .experience-item h3 { font-size: 22px; }
  .certification-panel { padding: 24px; }
  .certification-panel h3 { font-size: 34px; }
  .projects-footer-card { flex-direction: column; align-items: flex-start; }
  .projects-hero h1 { font-size: clamp(3.1rem, 15vw, 5.2rem); }
  .projects-section { padding: 82px 0 90px; }
  .projects-category + .projects-category { margin-top: 82px; }
  .project-grid-all { grid-template-columns: 1fr; }
}

/* Keep the additions intentionally isolated from the original component styling. */

/* --------------------------------------------------------------------------
   Portfolio visual polish: project showcase, charcoal About card and
   subtle floating technology watermark layer.
   -------------------------------------------------------------------------- */

body {
  position: relative;
  background-color: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: -28px;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='560' viewBox='0 0 760 560'%3E%3Cg font-family='Arial,sans-serif' font-weight='700' fill='%2311110f' fill-opacity='.085'%3E%3Ctext x='54' y='78' font-size='30'%3EJS%3C/text%3E%3Ctext x='250' y='66' font-size='29'%3E%26lt;/%26gt;%3C/text%3E%3Ctext x='478' y='104' font-size='30'%3ETS%3C/text%3E%3Ctext x='644' y='72' font-size='28'%3E%7B %7D%3C/text%3E%3Ctext x='92' y='238' font-size='24'%3ENODE%3C/text%3E%3Ctext x='340' y='220' font-size='25'%3ESQL%3C/text%3E%3Ctext x='598' y='266' font-size='24'%3EAPI%3C/text%3E%3Ctext x='44' y='432' font-size='24'%3EGIT%3C/text%3E%3Ctext x='282' y='416' font-size='23'%3EDOCKER%3C/text%3E%3Ctext x='594' y='458' font-size='25'%3EAWS%3C/text%3E%3C/g%3E%3Cg fill='%23b7ff3c' fill-opacity='.16'%3E%3Ccircle cx='188' cy='148' r='4'/%3E%3Ccircle cx='540' cy='330' r='4'/%3E%3Ccircle cx='704' cy='382' r='3'/%3E%3Ccircle cx='176' cy='500' r='3'/%3E%3C/g%3E%3Cg stroke='%2311110f' stroke-opacity='.055' fill='none' stroke-width='1.5'%3E%3Cpath d='M170 130h42l18 18h42'/%3E%3Cpath d='M500 292h36l16 16h50'/%3E%3Cpath d='M184 484h42l14-14h42'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 760px 560px;
  background-position: 0 0;
  opacity: .88;
  animation: techWatermarkDrift 18s ease-in-out infinite alternate;
}

body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

@keyframes techWatermarkDrift {
  from { transform: translate3d(-8px, 10px, 0); }
  to { transform: translate3d(10px, -18px, 0); }
}

/* Make cards opaque enough to stay readable while letting the background
   watermark remain visible in the negative space around them. */
.home-project-grid .project-card:not(.more-project-card) {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
}

/* Featured project: explicitly define grid areas so the visual cannot collapse
   into the top-right cell or inherit an impossible 100% height. */
.home-project-grid .project-card.featured {
  min-height: 440px;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "featured-meta featured-visual"
    "featured-body featured-visual";
  column-gap: 16px;
}

.home-project-grid .project-card.featured .project-top {
  grid-area: featured-meta;
  padding: 28px 30px 0;
}

.home-project-grid .project-card.featured .project-body {
  grid-area: featured-body;
  align-self: end;
  padding: 16px 34px 34px 30px;
}

.home-project-grid .project-card.featured .project-body h3 {
  font-size: clamp(30px, 3vw, 42px);
}

.home-project-grid .project-card.featured .project-body p {
  max-width: 520px;
  min-height: 0;
}

.home-project-grid .project-card.featured .project-visual {
  grid-area: featured-visual;
  min-height: 404px;
  height: auto;
  margin: 18px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(145deg, #b7ff3c 0%, #d9ff92 58%, #efffd3 100%);
  box-shadow: inset 0 0 0 1px rgba(17,17,15,.08);
}

.home-project-grid .project-card.featured .project-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(17,17,15,.09);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(183,255,60,.12) 0 26%, transparent 26%),
    rgba(255,255,255,.94);
  box-shadow: 0 24px 55px rgba(17,17,15,.10);
}

.home-project-grid .project-card.featured .project-visual::after {
  content: "SOURCE SMARTER\A FOR EVERY BUILD.";
  position: absolute;
  z-index: 2;
  top: 88px;
  left: 54px;
  white-space: pre;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.055em;
  color: var(--ink);
}

.home-project-grid .project-card.featured .visual-label {
  top: 48px;
  left: 54px;
  color: rgba(17,17,15,.58);
  font-size: 8px;
  letter-spacing: .15em;
}

.home-project-grid .project-card.featured .visual-label::after {
  content: "LIVE";
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  letter-spacing: .12em;
}

.home-project-grid .project-card.featured .mock-panel {
  z-index: 2;
  left: 54px;
  right: 54px;
  bottom: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(17,17,15,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 32px rgba(17,17,15,.08);
}

.home-project-grid .project-card.featured .mock-panel::before {
  content: "SOURCING BOARD";
  display: block;
  padding: 4px 4px 9px;
  border-bottom: 1px solid rgba(17,17,15,.08);
  color: rgba(17,17,15,.42);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .14em;
}

.home-project-grid .project-card.featured .mock-row {
  padding: 10px 4px;
  font-size: 10px;
}

.home-project-grid .project-card.featured .mock-row strong {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(183,255,60,.24);
  color: #315300;
  font-size: 7px;
}

/* About becomes a deliberate charcoal statement card instead of large text
   floating directly on the page. */
#about {
  background: transparent;
}

#about .about-grid {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 68px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  background: linear-gradient(145deg, #171713 0%, #20201c 100%);
  color: #fff;
  box-shadow: 0 30px 85px rgba(17,17,15,.14);
}

#about .about-grid::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -110px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183,255,60,.22), rgba(183,255,60,.05) 42%, transparent 70%);
  pointer-events: none;
}

#about .about-grid::after {
  content: "{ PRODUCT / SYSTEMS / BUILD }";
  position: absolute;
  right: 34px;
  bottom: 26px;
  color: rgba(255,255,255,.07);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: .08em;
  pointer-events: none;
}

#about .about-grid > * {
  position: relative;
  z-index: 1;
}

#about .eyebrow {
  color: rgba(255,255,255,.52);
}

#about .about-grid h2 {
  color: #fff;
}

#about .about-copy p {
  color: rgba(255,255,255,.62);
}

#about .skill-list span {
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.84);
}

@media (max-width: 920px) {
  .home-project-grid .project-card.featured {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "featured-meta"
      "featured-visual"
      "featured-body";
  }

  .home-project-grid .project-card.featured .project-visual {
    min-height: 380px;
  }

  #about .about-grid {
    gap: 34px;
  }
}

@media (max-width: 700px) {
  body::before {
    background-size: 560px 412px;
    opacity: .72;
  }

  .home-project-grid .project-card.featured .project-top {
    padding: 20px 20px 0;
  }

  .home-project-grid .project-card.featured .project-body {
    padding: 10px 20px 26px;
  }

  .home-project-grid .project-card.featured .project-visual {
    min-height: 320px;
    margin: 18px;
    border-radius: 16px;
  }

  .home-project-grid .project-card.featured .project-visual::before {
    inset: 18px;
  }

  .home-project-grid .project-card.featured .project-visual::after {
    top: 73px;
    left: 40px;
    font-size: 22px;
  }

  .home-project-grid .project-card.featured .visual-label {
    top: 39px;
    left: 40px;
  }

  .home-project-grid .project-card.featured .mock-panel {
    left: 40px;
    right: 40px;
    bottom: 32px;
  }

  #about .about-grid {
    padding: 34px 26px 38px;
    border-radius: 24px;
  }

  #about .about-grid::after {
    right: 24px;
    bottom: 18px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
