*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0;
/* border: red 1px solid; */
}



:root {
--bg-hero: ;
--bg-mid: #8a9aaa;
--bg-footer: #b8b89a00;
--text-primary: #1a1a1a;
--text-secondary: #3a3a3a;
--text-muted: rgba(56, 65, 75, 0.80);
--border: rgba(0,0,0,0.1);
--card-bg: rgba(255,255,255,0);
--card-border: rgba(255,255,255,0);
--projects-bg: #d8d5c800;
--section-card-bg: rgba(255,255,255,0);
--pill-bg: rgba(255,255,255,0.25);
--pill-border: rgba(255,255,255,0.4);
--left-right-padding: 35px;
--subheading: #38414B;
--inner-bg: var(--glass-background);

--background-img: url(/images/backgroundtest3.jpeg);


--glass-background: linear-gradient(180deg, rgba(255, 255, 255, 0.219), rgba(214, 214, 214, 0.336));
/* --glass-background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(214, 214, 214, 0.153)); */

--glass-border: 1px solid rgba(255, 255, 255, 0.15);
--glass-border-top: rgba(255, 255, 255, 0.192);
--glass-border-bottom: rgba(255, 255, 255, 0.034);
--glass-box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.18) inset, 0 -1px 0 0 rgba(255, 255, 255, 0.05) inset, 0 0 0 0.5px rgba(0, 0, 0, 0.082), 0 24px 60px rgba(0, 0, 0, 0.11), 0 6px 16px rgba(0, 0, 0, 0.048);


  --resize-dur: 300ms;
  --resize-ease: cubic-bezier(0.22, 1, 0.36, 1);

   interpolate-size: allow-keywords;
}

html { 
scroll-behavior: smooth; 
/* overscroll-behavior: none; */
/* background: linear-gradient(to bottom, #ff5733 50%, #33e3ff 50%); */
/* width: 100vw; */
}

body {
/* overscroll-behavior: none; */
font-family: 'Geist', sans-serif;
font-size: 14px;
color: var(--text-primary);
/* background: var(--bg-hero); */
min-height: 100vh;
-webkit-font-smoothing: antialiased;
/* background: linear-gradient(
180deg,
#506199 0%,
#6C81AA 16.67%,
#849BB5 33.33%,
#9CB1BA 50%,
#B2C1B6 66.67%,
#C9C7A7 83.33%,
#D5B68F 100%
); */
background-image: url(/images/backgroundtest3.jpeg);
  background-repeat: no-repeat;
background-size: cover;  
background-position: center top;
background-attachment: fixed;
background-color: #4D87C5;
height: 100%;
position: relative;

display: flex;
  flex-direction: column;
   }

  
.blue-top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  height: 200px;
  width: 100%;
  background: linear-gradient(180deg, #4D87C5 0%, rgba(77, 135, 197, 0.00) 100%);
}

.blue-wrapper {
  display: contents; 
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.green-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(0deg, #82BC68 0%, rgba(130, 188, 104, 0.00) 100%);
}

@media screen and (max-width: 768px) {
body:before {
  content: "";
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  background: var(--background-img) no-repeat top center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.blue-top {
  position: fixed;
  z-index: 100;
  height: 150px;
}


}

@media screen and (min-width: 768px) {
.blue-top {
  position: fixed;
  z-index: 100;
  height: 150px;
}
}



.footer-name, .footer-links {
  z-index: 90;
}

/* NAV */
nav {
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
padding: 30px var(--left-right-padding);
/* background: var(--bg-hero);
border-bottom: 0.5px solid rgba(255,255,255,0.15); */
}

.nav-left { display: flex; gap: 8px; }

.nav-left-1, .nav-left-2 {
display: flex;
gap: 8px;
}

.nav-center { 

/* letter-spacing: 0.01em; */
position: absolute;
left: 50%;
transform: translateX(-50%) translateY(-4px);
}

.nav-center a {
font-size: 16px; 
font-weight: 500;
color: rgba(0, 0, 0, 0.66);
text-decoration: none;
}

.nav-right { display: flex; gap: 8px; align-items: center; }

.pill {
background: var(--pill-bg);
/* border: 0.5px solid var(--pill-border); */
border-radius: 1000px;
padding: 11px 19px;
/* font-size: 13px; */
font-size: (clamp(8px, 13px, 13px));
font-weight: 400;
color: rgba(0, 0, 0, 0.60);
background: rgba(255, 255, 255, 0.25);
cursor: pointer;
text-decoration: none;
white-space: nowrap;
transition: background 0.15s, border-color 0.15s;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
text-align: center;

position: relative;

background: linear-gradient(180deg, rgba(180, 180, 180, 0.219), rgba(214, 214, 214, 0.336));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.192);
    border-bottom-color: rgba(255, 255, 255, 0.034);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.18) inset, 0 -1px 0 0 rgba(255, 255, 255, 0.05) inset, 0 0 0 0.5px rgba(0, 0, 0, 0.082), 0 24px 60px rgba(0, 0, 0, 0.11), 0 6px 16px rgba(0, 0, 0, 0.048);

    box-sizing: border-box;

}
.pill:hover { background: rgba(255,255,255,0.32); }

/* HERO */
.hero {
background: var(--bg-hero);
padding: 0px var(--left-right-padding) 12px;
/* min-height: 200px; */
display: flex;
flex-direction: column;
justify-content: flex-end;
transform: translateX(-7px) translateY(-10px);
}

.hero h1 {
/* clamp(36px, 7vw, 72px) */
font-size: clamp(6vw, 96px, 10vw);
font-weight: 600;
line-height: 1.05;
color: rgba(0, 0, 0, 0.53);
letter-spacing: -3%;
/* letter-spacing: -0.02em; */
}
.hero h1 .dim { color: rgba(0, 0, 0, 0.35); }

/* PHOTO STRIP */
.photo-strip {
padding: 24px var(--left-right-padding) 44px;
overflow: visible;
}

.photos-scroll {
display: flex;
gap: 0; /* 12px*/
/* overflow-x: auto; */
padding-bottom: 0;
/* scrollbar-width: none; */
/* -ms-overflow-style: none; */
overflow: visible;
flex-wrap: nowrap;
justify-content: space-between;
}
.photos-scroll::-webkit-scrollbar { display: none; }

.photo-card {
display: flex;
flex-direction: column;
/* flex-shrink: 0; */
/* width: 200px; */
border-radius: 8px;
overflow: hidden;
position: relative;
background: rgba(255,255,255,0.66);
padding: 8px;
gap: 7px;
flex: 0 0 205px;
transform: rotate(var(--r, 0deg));
backdrop-filter: blur(10px);

/* background: linear-gradient(180deg, rgba(180, 180, 180, 0.219), rgba(214, 214, 214, 0.336)); */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.192);
    border-bottom-color: rgba(255, 255, 255, 0.034);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.18) inset, 0 -1px 0 0 rgba(255, 255, 255, 0.05) inset, 0 0 0 0.5px rgba(0, 0, 0, 0.082), 0 24px 60px rgba(0, 0, 0, 0.11), 0 6px 16px rgba(0, 0, 0, 0.048);

    box-sizing: border-box;

}
.photo-card img {
width: 100%; height: 220px;
object-fit: cover;
display: block;
filter: brightness(0.92);
border-radius: 6px 6px 0px 0px;
}
.photo-card .caption {
font-size: 12px;
color: #38414B;
line-height: 1.3;
}

/* DIVIDER */
hr.section-divider {
border: none;
border-top: 2px solid rgba(51, 51, 51, 0.13);
margin: 0px var(--left-right-padding);
}

/* PROJECTS SECTION */

.projects-section {
background: var(--projects-bg);
padding: 32px var(--left-right-padding) 48px;
}

.projects-section h2 {
font-size: 18px;
font-weight: 500;
color: var(--text-primary);
margin-bottom: 24px;
}

.projects-layout {
display: grid;
grid-template-columns: 240px 1fr;
gap: 24px;
align-items: start;
/* justify-items: start; */
overflow: visible;
}

.selected-works {
overflow: visible;
}

/* CATEGORIES SIDEBAR */
.categories-panel {
background: var(--glass-background);
backdrop-filter: blur(10px);
border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
border-radius: 10px;
padding: 14px;
padding-bottom: 2px;
position: sticky;
top: 101px;
}

.categories-panel::before {
   -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.categories-panel h3 {
font-size: 18px;
font-weight: 600;
color: var(--subheading);
/* text-transform: uppercase; */
/* letter-spacing: 0.06em; */
margin-bottom: 16px;
}

.category-item {
padding: 10px 10px;
border-radius: 8px;
cursor: pointer;
transition: background 0.15s;
margin-bottom: 12px;
background: var(--glass-background);
border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
}
.category-item:hover, .category-item.active { background: rgba(255,255,255,0.55); }
.category-item h4 {
font-size: 16px;
font-weight: 500;
color: #38414B;
margin-bottom: 2px;
}
.category-item p {
font-size: 14px;
color: rgba(56, 65, 75, 0.80);
line-height: 1.4;
}

/* SHOWCASE PANELS */
.showcase-panel {
background: var(--glass-background);
border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
backdrop-filter: blur(10px);

border-radius: 10px;
overflow: hidden;
/* smooth collapse */
max-height: 3000px;
opacity: 1;
transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1),
            opacity 0.3s ease,
            margin-top 0.3s ease,
            border-color 0.3s ease;
}

.showcase-panel.collapsed {
max-height: 0;
opacity: 0;
margin-top: 0 !important;
border-color: transparent;
margin-bottom: 0;
margin: 0;
}

.showcase-header {
padding: 14px 16px 10px;
padding-bottom: 0px;
font-size: 18px;
font-weight: 600;
color: var(--subheading);
/* border-bottom: 0.5px solid rgba(0,0,0,0.07); */
}

.project-box {
padding: 16px;
gap: 16px;
display: flex;
flex-direction: column;
/* backdrop-filter: blur(10px); */
}

.project-row {
display: grid;
grid-template-columns: 1fr 400px;
gap: 24px;
padding: 20px 16px;
background: var(--glass-background);
cursor: pointer;
transition: background 0.15s;
align-items: stretch;
border-radius: 8px;

border: var(--glass-border);
border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
}
.project-row:last-child { border-bottom: none; }
.project-row:hover { background: rgba(255,255,255,0.55); }

.project-info {
display: flex;
flex-direction: column;
}

.project-info-text {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}
.project-info h3 {
font-size: 18px;
font-weight: 500;
color: #38414B;
margin-bottom: 8px;
}

.project-info p {
font-size: 16px;
color: var(--text-muted);
line-height: 1.6;
margin-bottom: 12px;
display: -webkit-box;
-webkit-line-clamp: 4;
line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
}

.project-meta {
display: flex;
align-items: center;
gap: 0;
font-size: 14px;
color: var(--text-muted);
/* flex-wrap: wrap; */
gap: 8px;
width: 100%;
}

.grid-mode .project-meta {
  justify-content: space-between;
}

.meta-dot {
display: inline-flex;
align-items: center;
gap: 4px;
min-width: fit-content;
}
/* .meta-dot::before {
content: '✦';
font-size: 8px;
color: #aaa;
margin: 0 4px;
} */
.meta-dot:first-child::before { display: none; }

.project-image {
height: 250px;
width: 100%;
border-radius: 8px;
overflow: hidden;
background: var(--glass-background);
border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
display: flex;
align-items: center;
justify-content: center;
}
.project-image img {
object-fit: cover;
width: 100%;
height: 100%;
/* height: 250px;    
width: 100%; */
flex: 1;
}
.project-image.placeholder {
background: repeating-conic-gradient(rgba(0,0,0,0.04) 0% 25%, transparent 0% 50%) 0 0 / 12px 12px;
}

/* CS SHOWCASE — slightly different bg */
/* .cs-showcase { margin-top: 16px; } */
.cs-showcase .showcase-panel {
background: rgba(200,195,180,0.4);
}

.ux-showcase {margin-bottom: 16px;}
.cs-showcase {margin-bottom: 16px;}

/* FOOTER */
footer {
/* background: var(--bg-footer); */
background-image: url(/images/footer2.png);
background-repeat: no-repeat;
background-position: center bottom;
background-size: cover;
padding: 32px var(--left-right-padding) 28px;
display: flex;
justify-content: space-between;
align-items: flex-end;
/* aspect-ratio: 3.95 / 1; */
aspect-ratio: 1440 / 241;
width: 100%;
  margin-top: auto;

}

footer .footer-name {
font-size: clamp(28px, 5vw, 48px);
font-weight: 600;
color: rgba(0, 0, 0, 0.53);
line-height: 0.8;
/* letter-spacing: -0.02em; */
}

.footer-links {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 6px;
}

.footer-links a {
font-size: 13px;
color: rgba(30,25,20,0.65);
text-decoration: underline;
text-underline-offset: 2px;
text-decoration-color: rgba(30,25,20,0.25);
transition: color 0.15s;
}
.footer-links a:hover { color: rgba(30,25,20,0.9); }





/* Clock */
#clock { font-variant-numeric: tabular-nums; }

/* Smooth category filter */
.project-row { transition: background 0.15s, opacity 0.2s, max-height 0.25s; }
.project-row.hidden { display: none; }

/* ───────────────────────────────────────────
   NOW PLAYING PILL
   Width is set explicitly in JS (see syncPillWidth
   in the script), measured from whichever child
   (.np-main or .np-controls) is the active one,
   plus re-measured whenever the track label
   changes. This sidesteps fit-content/auto-width
   transition limitations entirely — animating a
   real px-to-px value works in every browser.
   .np-controls stays position: absolute (out of
   flow) so it never affects layout/scroll; .js
   reads its scrollWidth directly for measuring.
   Expand/collapse state is driven by the
   .is-expanded class (toggled on hover AND on
   focus-within, via JS) rather than a bare :hover
   selector, so the same code path can be reused
   for track-change resyncs.
─────────────────────────────────────────── */

.now-playing-pill {
  position: relative;
  padding: 0;
  overflow: hidden;
  transition: width var(--resize-dur) var(--resize-ease);
}

.np-main, .np-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 6px 6px;
  width: max-content;
  height: 41px;
  cursor: default;
  transition: opacity 0.15s ease;
}

.np-controls {
  padding: 6px;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  /* Fixed width, not max-content. .np-buttons and #track2 below
     are percentage-sized against THIS box, so if this box were
     itself max-content (sized from ITS children) we'd have a
     circular dependency: width depends on children, children's
     width depends on this width. Browsers resolve that
     inconsistently across repeated layout passes — which is why
     repeated calls to syncPillWidth() could read a different
     scrollWidth each time. A fixed px value breaks the cycle and
     makes scrollWidth deterministic on every measurement. */
  width: 180px;
  opacity: 0;
  pointer-events: none;
}

.np-controls button{
    border:none;
    background:none;
    font-size:22px;
    cursor:pointer;
}

.now-playing-pill.is-expanded .np-main{
    opacity:0;
    pointer-events: none;
}

.now-playing-pill.is-expanded .np-controls{
    opacity:1;
    pointer-events:auto;
}

.np-buttons {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding-left: 13px;
  padding-right: 13px;
  justify-content: space-between;
  align-items: center;
  
}

#track2 {
  width: calc(100% - 30px);
}

.np-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(0,0,0,0.62);
  transition: color 0.15s ease, transform 0.1s ease;
}
.np-btn:hover { color: rgba(0,0,0,0.85); }
.np-btn:active { transform: scale(0.88); }
.np-btn svg { width: 100%; height: 100%; display: block; }

.np-btn.play-pause { width: 18px; height: 18px; }

/* play/pause morph: two paths cross-fade instead of swapping elements */
.icon-path {
  transition: opacity 0.15s ease;
}
.np-play .icon-pause,
.np-pause .icon-play { opacity: 0; }
.np-play .icon-play,
.np-pause .icon-pause { opacity: 1; }

.np-bar-fill.scrubbing { transition: none; }

.np-bar-thumb {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  transform: translate(-50%, -50%) scale(0.4);
  transition: opacity 0.15s ease, transform 0.15s ease;
  cursor: grab;
  touch-action: none;
}

.np-bar-thumb::after {
  /* larger invisible hit area for easier grabbing */
  content: '';
  position: absolute;
  inset: -8px;
}

.np-bar-thumb:active,
.np-bar-thumb.dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1);
}

.np-disc {
width: 32px;
height: 32px;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
border: 1.5px solid rgba(255,255,255,0.4);
}
.np-disc img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

/* spin animation */
@keyframes spin {
from { transform: rotate(0deg); }
to   { transform: rotate(360deg); }
}


.np-disc {
animation: spin 4s linear infinite;
animation-play-state: paused;  /* start paused */
}
.np-disc.playing {
animation-play-state: running;
}

.np-info {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.np-title {
font-size: 12px;
font-weight: 500;
color: rgba(0,0,0,0.7);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.np-artist {
font-size: 11px;
color: rgba(0,0,0,0.45);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.np-bar-track {
margin-top: 3px;
height: 2px;
background: rgba(0,0,0,0.15);
border-radius: 2px;
overflow: visible;
width: 100%;
 position: relative;
  cursor: pointer;
}
.np-bar-fill {
height: 100%;
width: 0%;
background: rgba(0,0,0,0.4);
border-radius: 2px;
transition: width 0.5s linear;
position: relative;
}

.np-label {
font-size: 13px;
font-weight: 400;
color: rgba(0,0,0,0.60);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 220px;
}

.home-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1000px;
  padding: 12px 24px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(0,0,0,0.66);
  text-decoration: none;
  white-space: nowrap;
  z-index: 200;
}

.home-fab:hover { background: rgba(255,255,255,0.45); }



/* grid mode — all selected */
.grid-mode .project-row {
  grid-template-columns: 1fr;
}

.grid-mode .project-image {
  height: 160px;
  order: -1;
}

.grid-mode .project-info p {
  display: none;
}

.grid-mode .project-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.grid-mode .showcase-header {
  padding: 14px 16px 10px;
}

/* .grid-mode .showcase-panel {
  background: transparent;
  border: none;
  margin-bottom: 8px;
} */

/* .grid-mode .showcase-panel .showcase-header {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(56, 65, 75, 0.5);
  padding: 0 0 8px 0;
} */

.project-row {
  transition: background 0.15s, opacity 0.25s, transform 0.25s;
}

.grid-mode .project-box {
  transition: gap 0.3s;
}

/* .grid-mode .meta-dot {
  font-size: 12px;
} */

.selected-works {
  overflow: visible;
}

.star {
  color: rgba(56, 65, 75, 0.4);
  font-size: 10px;
}

 
  /* WRITINGS SECTION */
  .writings-section {
    padding:32px var(--left-right-padding) 48px;
  }
 
  /* TWO-COL LAYOUT — same grid as projects */
  .writings-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
  }
 
  /* FILTER SIDEBAR */
  .filter-panel {
    background: var(--glass-background);
    border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
    border-radius: 10px;
    padding: 14px;
    padding-bottom: 2px;
    position: sticky;
    top: 101px;
    backdrop-filter: blur(10px);
  }
 
  .filter-panel h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--subheading);
    margin-bottom: 16px;
  }
 
  .filter-group {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 12px;
    user-select: none;
    background: var(--glass-background);
    border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
  }
  .filter-group:hover { background: rgba(255,255,255,0.4); }
  .filter-group.open   { background: rgba(255,255,255,0.5); }
 
  .filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .filter-group-header h4 {
    font-size: 16px;
    font-weight: 500;
    color: #38414B;
  }
  .filter-chevron {
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.2s;
    display: inline-block;
  }
  .filter-group.open .filter-chevron { transform: rotate(180deg); }
 
  .filter-options {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
  }
  .filter-group.open .filter-options {
    max-height: 200px;
    opacity: 1;
  }
 
  .filter-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 2px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.1s;
  }
  .filter-option:hover { color: var(--text-primary); }
  .filter-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 13px; height: 13px;
    border-radius: 3px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
  }
  .filter-option input[type="checkbox"]:checked {
    background: rgba(0,0,0,0.5);
    border-color: transparent;
  }
  .filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px; top: 1px;
    width: 5px; height: 8px;
    border: 1.5px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(40deg);
  }
 
  /* Clear filters link */
  .clear-filters {
    display: none;
    margin-top: 10px;
    margin-bottom: 12px;
    padding: 0 2px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .clear-filters:hover { color: rgba(0,0,0,0.7); }
  .clear-filters.visible { display: block; }
 
  /* ARTICLES PANEL */
  .articles-panel {
    overflow: visible;

  }
 
  /* Each article row */
  .article-row {
    border-radius: 10px;
    padding: 20px 20px 18px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.25s, max-height 0.3s;
    /* max-height: 160px; */
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--glass-background);
    border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1),
              opacity 0.25s ease,
              margin-bottom 0.4s ease,
              padding 0.5s;
              backdrop-filter: blur(10px);
  }
  .article-row:last-child { border-bottom: none; }
  .article-row:hover { background: rgba(255,255,255,0.28); }
 
  .article-row.hidden {
    /* max-height: 0; */
    opacity: 0;
    margin-bottom: 0;
    height: 0;
    padding: 0;
  }
 
  .article-row h3 {
    font-size: 18px;
    font-weight: 500;
    color: #38414B;
    margin-bottom: 8px;
  }
 
  .article-row p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
 
  .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
  }
  .meta-dot { display: inline-flex; align-items: center; }
  /* .meta-dot::before { content: '✦'; font-size: 8px; color: #aaa; margin: 0 5px; } */
  .meta-dot:first-child::before { display: none; }
 
  .topic-tag {
    display: inline-block;
    background: rgba(0,0,0,0.06);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 14px;
    color: rgba(0,0,0,0.5);
  }
 
  /* Empty state */
  .empty-state {
    display: none;
    padding: 48px 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
  }
  .empty-state.visible { display: block; }

  /* ── OUTER WRAPPER ── */
  .about-body { 
    padding: 20px var(--left-right-padding) 56px;
    padding-top: 32px;
    
    
    
  }

  /* One big outer card */
  .outer-card {
    /* background: var(--glass); */
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
  }

  /* ── SECTION LABEL ── */
  .sec-label {
    font-family: "Geist Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 14px;
  }

  .lesser-bottom-margin {
    margin-bottom: 8px;
  }

  /* ── TOP SPLIT: left col + right col ── */
  .top-split {
    display: grid;
    grid-template-columns: 1fr 550px;
    gap: 12px;
    overflow: visible;
  }

  .left-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
  }

  .right-col {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* right col sections stacked with dividers */
  .right-section {
    padding: 16px;
    background: var(--glass-background);
    border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
   border-radius: 12px;
  backdrop-filter: blur(10px);
  }

  /* ── INTRO ── */
  .intro-section {
    background: var(--glass-background);
    border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
    padding: 16px;
    border-radius: 10px;
    height: 100%;
    backdrop-filter: blur(10px);
  }
  
  .intro-text p {
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.66);
    text-align: justify;
    margin-bottom: 14px;
  }
  .intro-text p:last-child { margin-bottom: 0; }

  /* ── EXPERIENCE ── */
  .exp-section {
    border-radius: 10px;
    padding: 16px;
    background: var(--glass-background);
    border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
backdrop-filter: blur(10px);
  }

  .exp-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }

  .exp-row {
    background: var(--inner-bg);
    border-radius: 8px;
    padding: 16px;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    align-items: start;
        background: var(--glass-background);
    border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
  }
  .exp-left .role    { font-size: 15px; font-weight: 500; margin-bottom: 1px; color: rgba(0, 0, 0, 0.66); }
  .exp-left .company { font-size: 14px; font-weight: 500; color: rgba(0, 0, 0, 0.55); margin-bottom: 3px; }
  .exp-left .dates   { font-family: "Geist Mono", monospace; font-size: 13px; font-weight: 550; text-transform: uppercase; color: rgba(0, 0, 0, 0.5); }
  .exp-right ul      { list-style: none; }
  .exp-right ul li {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.55;
    padding-left: 10px;
    position: relative;
    margin-bottom: 3px;
  }

  .exp-right ul li:last-child {
  margin-bottom: 0;
}

  .exp-right ul li::before { content: '·'; position: absolute; left: 0; color: rgba(0, 0, 0, 0.5); }

  /* ── EDUCATION ── */
  .edu-degree  { font-size: 15px; font-weight: 500; color: rgba(0, 0, 0, 0.66); margin-bottom: 5px; }
  .edu-uni     { font-size: 15px; font-weight: 500; color: rgba(0, 0, 0, 0.55); margin-bottom: 5px; }
  .edu-majors  { font-size: 15px; font-weight: 400; color: rgba(0, 0, 0, 0.5); margin-bottom: 5px; }
  .edu-list    { list-style: none; margin-bottom: 8px; }
  .edu-list li {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.3);
    padding-left: 12px;
    position: relative;
    margin-bottom: 4px;
    line-height: 1.5;
  }
  .edu-list li::before { content: '·'; position: absolute; left: 0; color: rgba(0, 0, 0, 0.3); font-size: 15px;}
  .edu-grad {
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    font-weight: 550;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
  }

  /* ── CURRENTLY ── */
  .currently-blocks { display: flex; flex-direction: column; gap: 12px; }

  .c-block {
    background: var(--inner-bg);
    border-radius: 8px;
    padding: 11px 13px;
    padding-right: 20px;
    background: var(--glass-background);
     border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
  }
  .c-block-header {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.66);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .c-block-header span { font-size: 9px; color: var(--text-faint); }

  .media-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
  }
  .media-item { display: flex; flex-direction: row; gap: 10px; width: 100%; max-width: 100%; padding: 10px; background: var(--glass-background); border-radius: 8px;
  border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
align-items: center;

}
  .media-thumb {
    width: 50px;
    aspect-ratio: 1;
    object-fit: cover;
    background: rgba(0,0,0,0.1);
    display: block;
  }

  .book {aspect-ratio: 39 / 64;}

  .album {aspect-ratio: 1;
  height: 50px;}

  .poster {aspect-ratio: 1 / 1.5;}

  .media-title { font-size: 12px; font-weight: 500; color: rgba(0, 0, 0, 0.6); line-height: 1.3; }
  .media-sub   { font-size: 11px; font-weight: 400; color: rgba(0, 0, 0, 0.5); }
  .media-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
  }

  /* ── SNIPPETS — full width bottom section ── */
  .snippets-section {
    padding: 16px;
    background: var(--inner-bg);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border-top-color: var(--glass-border-top);
border-bottom-color: var(--glass-border-bottom);
box-shadow: var(--glass-box-shadow);
  }


  .snippets-scroll {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 2px;
    overflow-y: visible;
  }
  .snippets-scroll::-webkit-scrollbar { display: none; }

  .snippet-card {
    flex-shrink: 0;
    width: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.08);
  }
  .snippet-card img {
    width: 100%;
    height: 124px;
    object-fit: cover;
    display: block;
  }
  .snippet-caption {
    padding: 6px 8px;
    font-size: 10px;
    color: rgba(0,0,0,0.5);
    line-height: 1.3;
  }

  .snippets-wrapper {
    position: relative;
    overflow: visible;
  }

  .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,0.65);
    transition: opacity 0.25s ease, background 0.15s ease;
    border: none;
  }
  .scroll-btn:hover:not(.dimmed) { background: rgba(255,255,255,0.8); }
  .scroll-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
  .scroll-btn.left  { left: -6px; }
  .scroll-btn.right { right: -6px; }
  .scroll-btn.dimmed {
    pointer-events: none;
    background: rgba(255,255,255,0.1);
  }

  .yspsfagsil {
    font-size: 10px;
  }

/* transitions.dev */
.t-resize {
  transition:
    width  var(--resize-dur) var(--resize-ease),
    height var(--resize-dur) var(--resize-ease);
  will-change: width, height;
}

@media (prefers-reduced-motion: reduce) {
  .t-resize { transition: none !important; }
}

  /* RESPONSIVE */
@media (max-width: 1200px) {
  /* .exp-row {} */
  .exp-right {display: none;}
}


@media (max-width: 1020px) {
/* .nav-center { display: none; } */
.nav-right { display: none; }
.nav-left {
    width: 100%;
    justify-content: space-between;
}
.projects-layout { grid-template-columns: 1fr; gap: 12px; }
.projects-section h2 { text-align: center; margin-bottom: 12px; }
.categories-panel { position: static; display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; justify-content: center; background: rgba(255, 255, 255, 0); backdrop-filter: blur(10px);
}
.categories-panel h3 { display: none; }
.category-item { margin: 0;}
.category-item p { display: none; }
.project-row { grid-template-columns: 1fr; }
.project-image { height: 160px; order: -1; }

.writings-layout { grid-template-columns: 1fr; gap: 24px; }
.filter-panel { position: static; }

.top-split {display: flex; flex-direction: column;}
}

@media (max-width: 700px) {
/* body {width: 100vw;} */
nav { padding: 8px 14px; }
/* .nav-center { display: none; } */
.hero { padding: 20px 14px 25px; padding-right: 0px; transform: translateX(7px); width: fit-content;}
.hero h1 {width: fit-content;}
.photo-strip { padding: 16px 20px 0; }
.photos-scroll {justify-content: space-around}
/* .photo-card { width: 110px; }
.photo-card img { height: 84px; }  */
hr.section-divider { margin: 20px 14px 0; }
.projects-section { padding: 24px 14px 36px; }
.writings-section {padding: 24px 14px 36px;}
/* .projects-layout { grid-template-columns: 1fr; } */
/* .categories-panel { position: static; display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; } */
/* .categories-panel h3 { display: none; } */
.category-item { margin: 0; padding: 8px 10px; }
/* .category-item p { display: none; } */
/* .project-row { grid-template-columns: 1fr; }
.project-image { height: 160px; order: -1; } */
footer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 24px 28px;}
.footer-links { align-items: flex-start; }

.about-body { padding: 24px 14px 36px; }
}

@media (max-width: 575px) {
.nav-center { display: none; }
.nav-left {width: 100%; justify-content: space-between; gap: 12px;}
.nav-left-1, .nav-left-2 {display:contents}
.nav-left .pill {width: 100%;}
.home-fab { display: block; }
}


@media (max-width: 500px) {
  .media-row {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  /* overflow: hidden; */
  }
  .media-item {gap: 15px;}
  .yspsfagsil {
    font-size: 12px;
  }

}

@media (max-width: 480px) {
/* .nav-right .pill:nth-child(n+2) { display: none; } */
.nav-right .pill { display: none; }
/* .hero h1 { font-size: 32px; } */
nav {align-items: center; justify-content: center;}
.nav-left {width: 100%; gap: auto; justify-content: space-between;}
.nav-left .pill {width: 100%;}

}

@media (max-width: 430px) {
.pill { font-size: 12px;}
.meta-dot { font-size: 12px;}
}

@media (max-width: 410px) {
  .nav-left .pill {
    padding: 10px 14px;
    font-size: 11px;
    width: 100%;
    gap: auto;
  }
}

/* Fade-in on load */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(14px); }
to   { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: fadeUp 0.55s ease both; }
/* .photo-strip { animation: fadeUp 0.55s 0.12s ease both; }
.projects-section { animation: fadeUp 0.55s 0.2s ease both; }
.writings-section { animation: fadeUp 0.55s 0.2s ease both; }
.about-body { animation: fadeUp 0.55s 0.2s ease both; } */

.aip-images {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.aip-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrapper::before {
  backdrop-filter: blur(10px);
  z-index: -1;
}

:root {
  --resize-dur: 300ms;
  --resize-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.t-resize {
  transition:
    width  var(--resize-dur) var(--resize-ease),
    height var(--resize-dur) var(--resize-ease), background 0.15s, border-color 0.15s, opacity 0.5s;
  will-change: width, height;
}

@media (prefers-reduced-motion: reduce) {
  .t-resize { transition: none !important; }
}

/* ───────────────────────────────────────────
   CONTACT PAGE
   Reuses --glass-background / --glass-border-*
   / --glass-box-shadow tokens from styles.css.
   Card layout mirrors .project-row / .exp-row:
   glass panel, rounded 8-10px, hover lighten.
─────────────────────────────────────────── */

.contact-section {
  padding: 32px var(--left-right-padding) 64px;
}

.contact-grid {
  display: grid;
  width: 100%;
  /* grid-template-columns: repeat(2, 1fr); 
  */
  grid-template-columns: repeat(4, 1fr); 
  gap: 16px;
  /* max-width: 760px; */
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--glass-background);
  border: var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-bottom-color: var(--glass-border-bottom);
  box-shadow: var(--glass-box-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.15s, transform 0.15s;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.45);
}

.contact-card:active {
  transform: scale(0.98);
}

.contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  color: rgba(0, 0, 0, 0.62);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-text h3 {
  font-size: 16px;
  font-weight: 500;
  color: #38414B;
}

.contact-text p {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: rgba(0, 0, 0, 0.35);
  transition: color 0.15s, transform 0.15s;
}

.contact-card:hover .contact-arrow {
  color: rgba(0, 0, 0, 0.6);
  transform: translate(2px, -2px);
}

.contact-arrow svg {
  width: 100%;
  height: 100%;
}

/* RESPONSIVE — match breakpoints already used across the site */
@media (max-width: 1100px) {
  .contact-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, 1fr); 
  gap: 16px;
  /* max-width: 760px; */
}
}


@media (max-width: 700px) {
  .contact-section { padding: 24px 14px 36px; }
}

@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
