    /* ===== Theme (Brittany-style palette) ===== */
    :root{
      --bg-0: #ffffff;         /* deep navy */
      --bg-1: #ffffff;         /* slightly lighter for gradient */
      --text: #000000;         /* main text */
      --muted: #2b2c2f;        /* muted text */
      --accent: #5092f6;       /* teal highlight */
      --chip-bg: rgba(146, 207, 254, 0.678);
      --chip-text: #3482f7;
      --link: #3c87ff;
      --maxw: 100vw;
      --hover-link: #67a0f59a;
    }
html, body { height: 100vh; }
html { scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--text);
  font: 16px/1.7 Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-0);
}

/* ===== Grid Shell ===== */
.shell{
  display: grid;
  grid-template-columns: minmax(320px, 30%) 1fr; /* left fixed area + right scroll */
  max-width: var(--maxw);
  margin: 0vh 10vw 0vh 10vw;
  gap: 5vw;
  padding: 4rem 2rem 6rem;
  box-sizing: border-box;
  min-height: 100vh;
  height: 100vh;            /* Set height explicitly to fill the viewport */
  padding: 0 2rem;           /* Remove top/bottom padding */
  overflow: hidden;          /* Prevent the shell itself from ever scrolling */

}

/* ===== Left: sticky panel ===== */
.sidebar{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  /* --- NEW --- */
  padding: 4rem 0 4rem ;      /* Add vertical padding here instead of on the shell */
}

.intro h1{
  margin: 0 0 .25rem;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.intro h2{
  margin: 0 0 1.2rem;
  font-weight: 600;
  color: var(--muted);
}
.lead{
  color: #2f2f2f;
  margin: 0 0 2rem;
  max-width: 40ch;
}

/* Left nav */
.nav{
  display: grid;
  gap: .8rem;
  margin: 2rem 0 3rem;
}
.nav-link{
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
  opacity: .9;
  position: relative;
  padding-left: 2.2rem;
}

.nav-link:hover{   
  color: var(--hover-link);
  border-radius: 4px; }
.nav-link.active{
  color: #0b223e;
  background: var(--accent);
  padding: .22rem .6rem .22rem 2.2rem;
  border-radius: 4px;
}

/* Social icons */
.social{
  display: flex;
  width: 80%;
  align-items: center;
  justify-content: space-evenly;  /* equal gaps + equal edge space */
  padding-left: 5%;
}

.icon-link{ text-decoration: none; line-height: 0; flex: 0 0 auto; }
.icon-link img{ width: 35px; height: 35px; filter: brightness(0.8); }
.icon-link img:hover{transform:translate(2px, -2px) ; filter: brightness(1); }

/* ===== Right: scroll column ===== */
.content{ 
  padding-right: 1rem;
  
  /* --- NEW --- */
  overflow-y: auto;          /* Make this column scrollable */
  padding-top: 4rem;         /* Add padding here */
  padding-bottom: 6rem;      /* Add padding here */
  scrollbar-width: none;
  scroll-padding-top: 7vh;

}
.section{
  padding: 3rem 0;
  border-top: 1px solid rgba(0,0,0,0.08); /* visible on white bg */
  
}
.section:first-child{ border-top: none; padding-top: 0; }
.section h3{
  margin: 0 0 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 1.05rem;
}

/* About text */
.about p{ max-width: 90%; color: #0b223e; }

/* ===== Experience: rows ===== */

/* The container stacks rows vertically */
.timeline{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* One clickable row (card) */
.exp-row{
  display: grid;
  grid-template-columns: 220px 1fr; /* left dates, right details */
  gap: 1.2rem 2rem;
  text-decoration: none;
  color: inherit;
  padding: 16px 18px;
  background: #fff;
}
.exp-row:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
  border-radius: 10px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease;
  background: #f8faff;
}

.when{
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .04em;
  align-self: start;
}

.exp-body{ align-self: start; }

.role{
  margin: 0 0 .3rem;
  font-size: 1.1rem;
  color: var(--text);
}
.role .company{
  color: var(--link);
}

.role .company .icon {
  width: 3%;
  height: 10%;
  margin-left: 6px;
  transition: transform .15s ease;
    vertical-align:middle;         /* or text-top */
  padding-bottom: 0.5rem;
}

.exp-row:hover .exp-body .role .company .icon {
  transform: translate(2px, -2px); /* nudges the arrow */
}

.details{
  color: #0b223e;
  margin: .4rem 0 0;
  font-size: medium;
}

.stack{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
}

.chip{
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid rgba(0,0,0,0.08);
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .04em;
}

/* ===== Projects ===== */
.projects-list{
  display: grid;
  gap: 20px;
}

.project-card{
  display: grid;
  grid-template-columns: 260px 1fr;    /* left image, right text */
  gap: 18px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;               /* whole card is a link */
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}
.project-card:hover,
.project-card:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.16);
  background: #f9fbff;
  outline: none;
}

/* Thumbnail */
.thumb{
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #eef1f8;
  line-height: 0;
}
.thumb img{
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.thumb .is-video {
  /* This creates a positioning container for the button inside */
  position: relative;
}

.play-button {
  /* This positions the button in the exact center */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* Styling the button itself */
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 150ms ease, transform 150ms ease;
}

/* A subtle hover effect for the button */
.play-button:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
  width: 100%;
  height: 100%;
  /* The fill colors are already set in your JS, so this is all we need */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); /* Adds a nice shadow */
}

.project-card:hover .thumb img{ transform: scale(1.03); filter: saturate(1.05); }

/* Text side */
.project-body{ align-self: start; }
.project-title{ margin: 0 0 4px; font-size: 1.05rem; }
.meta{ color: var(--muted); font-size: .95rem; margin-bottom: .3rem; }
.project-desc{ margin: 8px 0 10px; color: #0b223e; max-width: 65ch; }

/* Chips reuse your existing styles */
.stack{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.6rem; }


a{ color: var(--link); }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .shell{ grid-template-columns: 1fr; gap: 2rem; padding: 2.6rem 1.2rem 4rem; }
  .sidebar{ position: static; height: auto; }
  .content{ padding-right: 0; }

  /* experience rows stack date above content */
  .exp-row{
    grid-template-columns: 1fr;
    gap: .25rem;
  }
    .project-card{ grid-template-columns: 1fr; }
  .thumb img{ height: 200px; }

}






