:root{
  --text:#111;
  --muted:#666;
  --bg:#fff;
  --link:#111;
  --max: 980px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
}

a{
  color:var(--link);
  text-decoration:none;
  border-bottom:1px solid rgba(0,0,0,.25);
}
a:hover{ border-bottom-color: rgba(0,0,0,.75); }

.wrap{
  max-width: 900px;  
  margin: 0 auto;   
  padding: 0 20px;     
}

.site-title{
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 12px 0;
  display: inline-block;
  border-bottom: none;
}

.layout{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items:start;
}

nav ul{
  margin: 0;
  padding-left: 18px;
}
nav li{ margin: 2px 0; }
nav a{
  border-bottom: none;
  text-decoration: none;
}
nav a:hover{ text-decoration: underline; }

main{ padding-top: 2px; }

h1{
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 16px 0;
}
h2{
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 8px 0;
}

p{ margin: 0 0 12px 0; }
.meta{ color: var(--muted); }



.nav-list{
  list-style: none;     /* removes bullet points */
  padding: 0;
  margin-top: 14px;
}


/* hide page until layout is ready */
html.loading body{
  opacity: 0;
}

html.ready body{
  opacity: 1;
  transition: opacity 120ms ease-out;
}

/* optional: prevents content from showing in wrong place before mount */
#page-content{ display: none; }
html.ready #page-content{ display: block; }




/* ===== Video ===== */

.video-wrap{
  margin: 24px 0;
}

.video-frame{
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.project-video{
  width: 100%;
  height: auto;
  display: block;
  outline: none;
}

/* Controls overlay */
.yt-controls{
  position: absolute;
  left: 16px;
  bottom: 16px;

  display: inline-flex;
  align-items: center;
  gap: 18px;

  background: rgba(0,0,0,0.45);
  padding: 6px 10px;
  border-radius: 6px;

  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

/* Show on hover */
.project-video:hover + .yt-controls{
  opacity: 1;
  pointer-events: auto;
}

.video-frame:hover .yt-controls,
.video-wrap:hover .yt-controls{
  opacity: 1;
  pointer-events: auto;
}


/* Video buttons (Helvetica) */
.yt-btn{
  border: 0;
  background: none;
  padding: 0;
  margin: 0;

  color: #fff;
  cursor: pointer;
  font-family: Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 400;

  text-decoration: underline;
  white-space: nowrap;
}

.yt-btn:hover{ opacity: 0.85; }

.yt-btn:focus{
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

/* Touch devices */
@media (hover: none){
  .yt-controls{
    opacity: 1;
    pointer-events: auto;
  }
}

/* Responsive */
@media (max-width: 720px){
  .layout{ grid-template-columns: 1fr; }
}





/* prevent selection + dragging */
img,
video{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  -webkit-user-drag: none;
  user-drag: none;

  -webkit-touch-callout: none;
}

/* stop long-press/copy on the media itself but keep overlay clickable */
.project-video,
img{
  pointer-events: none;
}

/* keep overlay buttons clickable */
.yt-controls,
.yt-controls *{
  pointer-events: auto;
}

/* optional: prevent selection anywhere in the video block */
.video-frame{
  user-select: none;
  -webkit-user-select: none;
}




nav a {
  color: black;
  text-decoration: none; 
  transition: color 0.2s ease;
}

nav a:hover {
  color: magenta;     
  color: rgb(169, 88, 140);
  text-decoration: none;  
}





/* =========================
   CAROUSEL CONTAINER
   ========================= */
.carousel{
  position: relative;
  width: 100%;
}

/* =========================
   CAROUSEL IMAGES
   ========================= */
.carousel-img{
  width: 100%;
  height: auto;
  display: none;
}

.carousel-img.active{
  display: block;
}

/* =========================
   CONTROLS OVERLAY
   ========================= */
.carousel .yt-controls{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 10;
  pointer-events: none;
}

/* =========================
   ARROW BUTTONS
   ========================= */
.carousel .carousel-prev,
.carousel .carousel-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 999px;

  font-size: 26px;
  line-height: 1;

  color: white;
  background: rgba(0,0,0,0.45);

  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

/* LEFT / RIGHT POSITION */
.carousel .carousel-prev{
  left: 14px;
}

.carousel .carousel-next{
  right: 14px;
}

/* =========================
   HOVER STATE (MAGENTA)
   ========================= */
.carousel .carousel-prev:hover,
.carousel .carousel-next:hover{
  background: rgba(255, 0, 255, 0.75);
}

/* Optional: subtle press effect */
.carousel .carousel-prev:active,
.carousel .carousel-next:active{
  transform: translateY(-50%) scale(0.95);
}




/* ===== Mobile hamburger menu ===== */
.wrap{ position: relative; }

.menu-btn{
  display: none;
  position: absolute;
  top: 6px;
  right: 20px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  padding: 10px;
  cursor: pointer;
}

@media (max-width: 900px){
  .menu-btn{ display: inline-flex; align-items:center; justify-content:center; }

  nav#mobileNav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 86vw);
    background: white;
    padding: 18px 18px 24px 18px;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }

  nav#mobileNav.open{ transform: translateX(0); }

  .menu-backdrop{
    display:none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 999;
  }
  .menu-backdrop.show{ display:block; }
}

