:root {
    --bg: #0b0a10;
    --bg-elevated: #14121b;
    --text: #f4f2f9;
    --text-muted: #a39ab8;
    --accent: #a7f3d0;
    --accent-dim: #67e8f9;
    --accent-soft: rgba(103, 232, 249, 0.14);
    --radius: 10px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --max: 1080px;
  }

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

  body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }

  a { 
    
    color: inherit; text-decoration: none; 

}

  .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.35rem 3.75rem;
  }


  .flow-nudge { 

    padding-left: clamp(0px, 3vw, 1.25rem);

}
  .flow-nudge-alt {
    
    padding-right: clamp(0px, 4vw, 2rem); margin-left: auto;

}

  header {
    padding: 1.05rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .brand { 
    
    display: flex; flex-direction: column; gap: 0.15rem; 

}
  .logo { 
    
    font-weight: 720; letter-spacing: -0.03em; font-size: 1rem; 

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

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: flex-end;
    max-width: min(100%, 42rem);
  }

  /* ensures we get the hover effect*/
  .nav-link {
    display: inline-block;
    padding: 0.32rem 0.6rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 520;
    transition: color 0.12s ease, background 0.12s ease, transform 0.12s ease;
  }

  .nav-link:hover, .nav-link:focus-visible {
    color: var(--text);
    background: var(--accent-soft);
    outline: none;
    transform: translateY(-1px);
  }

  .hero {
    display: grid;
    gap: 1.85rem;
    padding: 2.65rem 0 0.75rem;
    align-items: start;
  }

  @media (min-width: 920px) {
    .hero {
      grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
      gap: 2.6rem;
    }
    
    /* ensures the visual is on the right and the copy is on the left*/
    .hero-visual { order: 2; }
    .hero-copy { order: 1; }
  }

  .school-line {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(167, 243, 208, 0.9);
  }

  h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(2.6rem, 7vw, 4.1rem);
    font-weight: 780;
    letter-spacing: -0.05em;
    line-height: 0.98;
    max-width: 12ch;
  }

  .sigil {
    display: inline-flex;
    gap: 0.45rem;
    margin-left: 0.25rem;
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(103, 232, 249, 0.85);
    user-select: none;
    transform: translateY(-0.15em);
  }

  .quote {
    margin: 0.75rem 0 0.55rem;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    font-style: italic;
    color: rgba(103, 232, 249, 0.9);
    max-width: min(38ch, 100%);
    margin-left: clamp(0px, 3vw, 1.1rem);
  }

  .quote-attrib {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82em;
    font-style: normal;
    font-weight: 520;
    color: var(--text-muted);
    letter-spacing: 0.02em;
  }

  .lede {
    margin: 0 0 1.2rem;
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 46ch;
    margin-left: clamp(0px, 6vw, 2.8rem);
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: clamp(0px, 2.5vw, 1rem);
  }

  .btn {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    background: rgba(20, 18, 27, 0.9);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
    transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
  }

  .btn:hover, .btn:focus-visible {
    background: rgba(103, 232, 249, 0.12);
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.35) inset;
  }

  /* this makes the photo look better as its first thing people see */
  .hero-photo {
    width: 100%;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius);
    background:
      radial-gradient(circle at 70% 25%, rgba(103, 232, 249, 0.16), transparent 55%),
      radial-gradient(circle at 25% 75%, rgba(167, 243, 208, 0.14), transparent 52%),
      linear-gradient(200deg, rgba(255,255,255,0.05), rgba(20,18,27,0.96));
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.1rem;
    color: rgba(244, 242, 249, 0.65);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(0.35deg);
  }


  section {
    margin-top: clamp(2.6rem, 5vw, 3.9rem);
    scroll-margin-top: 1.2rem;
  }

  .section-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    margin: 0 0 1rem;
  }

  .section-head h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3.8vw, 2.35rem);
    font-weight: 760;
    letter-spacing: -0.03em;
    line-height: 1.04;
  }

  .section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(167, 243, 208, 0.75);
    user-select: none;
  }

  .sec-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(103, 232, 249, 0.85);
    font-size: 1.2rem;
    line-height: 1;
    user-select: none;
  }

  .prose {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 64ch;
  }

  .offset-1 { 

    margin-left: clamp(0px, 4vw, 1.5rem); max-width: 58ch; 
  
  }


  .offset-2 {
     
    margin-left: clamp(0px, 8vw, 3.25rem); max-width: 54ch; 

    }


  .narrow {

    max-width: 48ch; 

    }

  
  .card {
    background: rgba(20, 18, 27, 0.92);
    border-radius: var(--radius);
    padding: 1.05rem 1.15rem;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
    transition: transform 0.12s ease, background 0.12s ease;
  }

  .card:hover {
    
    transform: translateY(-1px); background: rgba(20, 18, 27, 0.98);
  
  }
  
    .card + .card {
    
    margin-top: 0.75rem; 
  
  }

  .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    font-size: 0.84rem;
    color: rgba(244, 242, 249, 0.6);
    margin-bottom: 0.55rem;
  }

  .pill {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: rgba(167, 243, 208, 0.9);
    background: rgba(167, 243, 208, 0.08);
  }

  .subblock {
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .subblock h4 {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 720;
    letter-spacing: 0.02em;
    color: rgba(244, 242, 249, 0.92);
  }

  ul.detail {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
  }

  ul.detail li {
    
    margin: 0.25rem 0;
  
  }

  .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.35rem 0 0.55rem;
  }

  .tag {
    font-size: 0.72rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    color: rgba(244, 242, 249, 0.75);
    background: rgba(255,255,255,0.05);
  }

  .grid {
    display: grid;
    gap: 0.85rem;
  }

  @media (min-width: 720px) { 
    
    .grid-2 { 
      grid-template-columns: 1fr 1fr; 
    } 
  
  }

  /* Full-bleed projects band: breaks out of .wrap so cards use viewport width */
  .section-projects-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    padding: clamp(1.25rem, 4vw, 2.25rem) clamp(1rem, 5vw, 3rem) clamp(1.75rem, 5vw, 3rem);
    background:
      radial-gradient(ellipse 120% 80% at 50% 0%, rgba(103, 232, 249, 0.06), transparent 55%),
      linear-gradient(180deg, rgba(20, 18, 27, 0.2), rgba(11, 10, 16, 0.65));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .section-projects-inner {
    width: 100%;
    max-width: min(1600px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .section-projects-band .section-head {
    justify-content: center;
    text-align: center;
  }

  .projects-lede {
    max-width: 64ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .projects-grid {
    width: 100%;
    max-width: none;
    margin-top: 0.35rem;
    gap: clamp(0.85rem, 2vw, 1.25rem);
  }

  @media (min-width: 640px) {
    .projects-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 1100px) {
    .projects-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  /* Full-bleed skills band (matches Projects behavior) */
  .section-skills-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    padding: clamp(1.25rem, 4vw, 2.25rem) clamp(1rem, 5vw, 3rem) clamp(1.75rem, 5vw, 3rem);
    background:
      radial-gradient(ellipse 120% 80% at 50% 0%, rgba(167, 243, 208, 0.06), transparent 55%),
      linear-gradient(180deg, rgba(20, 18, 27, 0.18), rgba(11, 10, 16, 0.62));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .section-skills-inner {
    width: 100%;
    max-width: min(1600px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .section-skills-band .section-head {
    justify-content: center;
    text-align: center;
  }

  .skills-lede {
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .skills-grid {
    width: 100%;
    max-width: none;
    gap: clamp(0.85rem, 2vw, 1.25rem);
  }

  @media (min-width: 720px) {
    .skills-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 1100px) {
    .skills-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  .project { 
    
    display: flex; 
    flex-direction: column; 
    gap: 0.65rem; 
  
  }

  .project .prose {
    max-width: none;
  }

  .thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background:
      radial-gradient(circle at 30% 30%, rgba(103, 232, 249, 0.14), transparent 55%),
      linear-gradient(145deg, rgba(255,255,255,0.05), rgba(20,18,27,0.96));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(244, 242, 249, 0.55);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  footer {
    margin-top: 3.25rem;
    padding-top: 1.35rem;
    color: rgba(244, 242, 249, 0.55);
  }

  .footer-note { 
    
    margin: 0; 
    font-size: 0.78rem;
  
  }
