/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --bg: #ffffff;
  --bg-elevated: #ffffff;

  --text: #00306E;
  --text-muted: #4B6D99;
  --accent: #78A3DE;

  --border-subtle: #e0e0e0;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);

  /* layout */
  --container: 1240px;
  --content: 960px;
  --measure: 70ch;

  /* type */
  --kicker-track: 0.16em;
}

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

body{
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page{
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 32px 40px 48px;
  background: var(--bg-elevated);
}

/* shared container widths */

.site-header {
  max-width: 1920px;
  margin: 0 auto;
  padding: 16px 40px;
}

main,
.site-footer{
  width:100%;
  max-width:1120px;
  margin:auto;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.logo{
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: clamp(16px, 2.2vw + 1rem, 80px);
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text);
}
.logo:hover{ color: var(--text-muted); }

.nav{
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}
.nav a{
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
}
.nav a.nav-active{ color: var(--text); }

.nav a::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.18s ease-out;
}
.nav a:hover::after{ width: 100%; }

/* =========================================================
   MAIN
   ========================================================= */
main{
  padding-top: 28px;
}

/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */
.kicker{
  text-transform: uppercase;
  letter-spacing: var(--kicker-track);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero{ margin-bottom: 30px; }
.hero{
  max-width: 100%;
}

/*hero h1 stuff*/
.hero h1{
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 2.2vw + 1rem, 5rem);
  line-height: 1.1;
}
.hero h1{
  line-height:1.05;
  letter-spacing:-0.02em;
}

.hero-subtitle{
  margin: 0;
  color: var(--text-muted);
  max-width: 35rem;
  line-height: 1.6;
}
.hero-art{
  margin-right:-80px;
}
.hero-text{
max-width:600px;
}

/*hero gradient bg*/
.hero::before{
  pointer-events: none;
}
.hero::before{

content:"";

position:absolute;

top:50%;
left:50%;

transform:translate(-50%,-50%);

width:1200px;
height:700px;

background:radial-gradient(
ellipse,
rgba(70, 117, 183, 0.2),
transparent 100%
);

z-index:0;
}
.hero{
  position: relative;
}
/* CTA buttons */
.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary{
  background: var(--text);
  color: #fff;
  border-color: transparent;
}
.btn-ghost{
  background: transparent;
  color: var(--text);
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* hero split layout */
.hero-split{
  display:grid;
  grid-template-columns: minmax(400px, 800px) 1fr;
  align-items:center;
  gap:36px;
}
/*hero text*/
.hero-text{ min-width: 0; }
.hero-text{
  max-width: 720px;
}

.hero-art{
  position: relative;
  flex-shrink: 0;
}

/*changes color of hero subtitle */
.hero-action {
  font-weight: 600;
  color: var(--text);
  transition: opacity 0.35s ease;
}
/*added effects for icons in subtitle*/
.hero-actionwrap{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-action-icon{
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.75;
  transform: translateY(1px);
}

.hero-action{
  font-weight: 600;
  color: var(--text);
  transition: opacity 0.25s ease;
}

/*opacity of subtitle icons*/
.hero-action-icon{ opacity: 0.75; }

/*adding multiple icons*/
.hero-icons{
  display:inline-flex;
  gap:6px;
  margin-right:6px;
}

.hero-action-icon{
  width:18px;
  height:18px;
  object-fit:contain;
  opacity:0.8;
}

.hero-actionwrap{
  display:inline-flex;
  align-items:center;
}

  /*changes style of "listening to music"*/
  .music-action{
  color:#1DB954;   /* Spotify green lol*/
  }

  .hero-music-link{
  color:#1DB954;
  text-decoration:none;
  font-weight:600;
  }

  .hero-music-link:hover{
  text-decoration:underline;
  }

/* Dragon: base + hover + idle float */

/* Dragon positioning variables */
:root{
  --dragon-x: -155px;
  --dragon-y: -70px;
}

/* Floating animation */
@keyframes floatDragon{
  0% {
    transform:
      translateX(var(--dragon-x))
      translateY(var(--dragon-y));
  }

  50% {
    transform:
      translateX(var(--dragon-x))
      translateY(calc(var(--dragon-y) + 20px));
  }

  100% {
    transform:
      translateX(var(--dragon-x))
      translateY(var(--dragon-y));
  }
}


/* Dragon styling/sizing */
.hero-dragon{
  display:block;
  width:auto;
  max-width:250px;
  max-height:250px;

  opacity:0.85;

  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.10));

  animation: floatDragon 4s ease-in-out infinite;

  transform-origin:center;
}

/* Hover */
.hero-dragon:hover{
  animation-play-state: paused;

  transform:
    translateX(var(--dragon-x))
    translateY(calc(var(--dragon-y) + 5px))
    rotate(-10deg);
}

/* Clouds / ornaments */
.hero-clouds{
  position: absolute;
  right: 0;
  bottom: -150px;
  z-index: 1;
  pointer-events: none;
}
.hero-clouds-img{
  display: block;
  width: auto;
  max-width: 450px;
  max-height: 500px;
  object-fit: contain;
}

/*SMALL CLOUD ANIMATION*/
.hero-smallclouds{
  position: absolute;
  right: 350px;
  bottom: 40px;
  z-index: 1;
  transition: transform 0.5s ease;
  
}

/*function to make clouds float like dragon*/
@keyframes floatCloud{
  0%   { transform: translateX(-30px); }
  50%  { transform: translateX(-10px); }
  100% { transform: translateX(-30px); }
}

/*SMALL CLOUD SIZING*/
.hero-smallclouds-img{
  display: block;
  width: auto;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;

  /*animation*/
  animation: floatCloud 4s ease-in-out infinite;
  transition: transform 0.35s ease;
  transform-origin: center;
}

.hero-smallclouds:hover{
  transform: translateX(-50px);
}

/*SMALLER CLOUD ANIMATION - COPY*/
/*made the animation slightly diff for small cloud*/
@keyframes floatCloud2{
  0%   { transform: translateX(20px); }
  50%  { transform: translateX(0px); }
  100% { transform: translateX(20px); }
}

.hero-smallcloudscopy{
  position: absolute;
  right: 300px;        /* move further right */
  bottom: 250px;       /* bring upward */
  z-index: 0;         /* place behind dragon but above background */
  transition: transform 0.3s ease;
}

/*SMALL CLOUD COPY SIZING*/
.hero-smallcloudscopy-img{
  display: block;
  width: auto;
  max-width: 100px;    /* smaller than first cloud */
  object-fit: contain;

  /*animation*/
  animation: floatCloud2 4s ease-in-out infinite;
  transition: transform 0.35s ease;
  transform-origin: center;
}

.hero-smallcloudscopy:hover{
  transform: translateX(-35px);
}

/*YUESHAN PAGODA*/
.hero-yueshan{
  position: absolute;
  right: 90px;
  bottom: -175px; /*bring up*/
  z-index: 1;
}
.hero-yueshan-img{
  display: block;
  width: auto;
  max-width: 270px;
  max-height: 270px;
  object-fit: contain;
}

/* optional row of visuals */
.hero-visuals{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.hero-visual{
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 8px;
}

.hero{
  padding-top:40px;
  padding-bottom:80px;
}

/* =========================================================
   SECTIONS (HOME)
   ========================================================= */
.section{
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 40px;
}
.section h2{
  margin: 0 0 20px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.projects{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-card{
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap:40px;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  transition: transform .15s ease, box-shadow .15s ease;
}
.project-card:first-of-type{ border-top: none; }

.project-meta{
  font-size: 0.85rem;
  color: var(--text-muted);
}
.project-year{
  margin: 0 0 4px;
  font-weight: 500;
}
.project-role{ margin: 0; }

.project-content h3{
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.project-content p{
  margin: 0 0 10px;
  color: var(--text-muted);
}

.project-thumb{
  align-self: center;
  justify-self: end;
  width: 140px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--border-subtle);
  overflow: hidden;
}
.project-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-link{
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--accent);
}
.project-link:hover{ text-decoration: underline; }
.project-link + .project-link{ margin-left: 16px; }

.project-title-link{
  color: var(--text);
  text-decoration: none;
}
.project-title-link:hover{ color: var(--accent); }

/* hover lift */
.project-card:hover {
  background: rgba(120, 163, 222, 0.05); /* Soft blue from your palette */
  transform: translateX(8px); /* Horizontal shift instead of vertical */
  transition: all 0.3s ease;
}


/* --- SELECTED WORK REDESIGN --- */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 90px; /* Consistent spacing between projects */
  margin-top: 40px;
}

.project-entry {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Balanced split layout */
  gap: 48px;
  align-items: start;
}

.project-thumb {
  width: 90%;
  aspect-ratio: 14 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 48, 110, 0.05);
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Typography Hierarchy */
.project-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
  color: var(--text);
}

.project-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.project-impact {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text);
}

.project-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Subtle Modern Hover */
.project-entry:hover .project-thumb {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 48, 110, 0.1);
}

@media (max-width: 860px) {
  .project-entry { grid-template-columns: 1fr; gap: 24px; }
}
/* =====================================
   ABOUT — Deck layout (final)
   ===================================== */
#about.section{
  padding-top: 24px;
  margin-top: 24px;
}

.about-modern{
  display: grid;
  grid-template-columns: 1fr 360px;  /* slightly narrower image column */
  gap: 36px;                          /* reduce horizontal whitespace */
  align-items: start;
  margin-top: 16px;                   /* tighter vertical spacing */
}

/* LEFT COLUMN */
.about-left{
  max-width: 680px;
}

.about-block{
  margin-bottom: 18px;
}

.about-label{
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.about-block p{
  margin: 0;
  line-height: 1.75;
  color: var(--text-muted);
}

.about-block p + p{
  margin-top: 8px;
}

/* RIGHT COLUMN (deck) */
.about-right{
  display: flex;
  justify-content: flex-end;
}

/* Deck button */
.about-deck{
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5; /* portrait-friendly */
  border: 0;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: block;
  transition: transform .18s ease;
}

.about-deck:hover{
  transform: translateY(-3px);
}

/* Image */
.about-deck img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

/* Gradient overlay for readability */
.about-deck::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
  pointer-events:none;
}

/* Label + hint */
.about-deck-label{
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.about-deck-hint{
  position:absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Optional: peeking card behind */
.about-deck::before{
  content:"";
  position:absolute;
  inset: 10px -10px -10px 10px;
  border-radius: 22px;
  background: rgba(0,0,0,0.06);
  transform: rotate(2deg);
  z-index:-1;
}

/* Responsive */
@media (max-width: 900px){
  .about-modern{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-right{
    justify-content: flex-start;
  }
  .about-deck{
    max-width: 520px;
  }
}
/* =========================================================
   CONTACT
   ========================================================= */
.contact p{
  margin: 0 0 12px;
  color: var(--text-muted);
}
.contact-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.contact-links a{
  text-decoration: none;
  color: var(--accent);
  font-size: 0.95rem;
}
.contact-links a:hover{ text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================================
   ART PAGE
   ========================================================= 
.art-hero{
  max-width: 640px;
  margin-bottom: 40px;
}
.art-gallery{ margin-top: 32px; }

.art-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.art-item{
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.art-placeholder{
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--border-subtle) 0%, #e8e8e8 100%);
  border-radius: 12px;
}

.art-item img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.art-caption{
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}
.art-title{ font-weight: 500; }
.art-meta{
  color: var(--text-muted);
  font-size: 0.85rem;
}

.art-note{
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}
.art-note code{
  background: var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
}

.art-item:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

//* ===============================
   EDITORIAL ART GRID (SNUG)
   =============================== */

.art-modern-grid{

column-count:3;
column-gap:18px;

margin-top:30px;

}


/* Cards */

.art-card{

display:inline-block;

width:100%;

margin-bottom:18px;

border-radius:22px;

overflow:hidden;

position:relative;

background:#000;

box-shadow:var(--shadow-soft);

transition:transform .25s ease;

break-inside:avoid;

}


.art-card:hover{

transform:translateY(-6px);

}


/* Images fit naturally */

.art-card img{

width:100%;

height:auto;

display:block;

object-fit:cover;

}
/* Gradient overlay */
.art-card::after{
content:"";
position:absolute;
inset:0;

background:linear-gradient(
transparent 65%,
rgba(0,0,0,0.7)
);

}

.art-overlay{
position:absolute;
bottom:14px;
left:16px;
right:16px;
display:flex;
justify-content:space-between;

color:white;
font-size:0.95rem;
font-weight:500;
z-index:2;

}


/* =========================================================
   PROJECT / WORK DETAIL PAGES (EDITORIAL NOTION STYLE BASE)
   ========================================================= */
.project-page{
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.project-page-header{
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.project-page-meta{
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.project-page-header h1{
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 3vw + 1rem, 3.2rem);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* Editorial Typography */
h1 {
  letter-spacing: -0.03em; /* Tighter letter spacing for big headlines */
  line-height: 1.05;
}

.project-cta{
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.project-page-lead{
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.project-page-body{
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  max-width: 760px;
  margin: 0 auto;
}



/* Refined Border System */
.project-card, .aside-card {
  border: 1px solid rgba(0, 48, 110, 0.08); /* Use your text color at low opacity */
  border-radius: 12px;
}

/* Atmospheric Background */
.page {
  background: radial-gradient(circle at top right, rgba(120, 163, 222, 0.08) 0%, #FFFFFF 40%);
}

/* Case sections */
.case-section{
  margin: 3rem 0;
  text-align: left;
}
.case-section h2{
  font-size: 1.45rem;
  font-weight: 650;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.case-section p,
.case-section li{
  line-height: 1.75;
}
.case-section ul{
  margin: 0.6rem 0 0 1.25rem;
  padding: 0;
}
.case-section li{ margin: 0.35rem 0; }

/* Impact callout */
.case-section.impact{
  background: rgba(120,163,222,0.10);
  border: 1px solid rgba(120,163,222,0.22);
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
}

/* Common images */
.case-image{
  margin: 2rem 0;
}
.case-image img,
.centered-video{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.centered-video{
  max-width: 760px;
  margin: 2.5rem auto;
  box-shadow: var(--shadow-soft);
}

/* back link */
.project-back{
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
}
.project-back:hover{ color: var(--text); }

.work h2{
margin-bottom:-10px;
}

/* =========================================
   QUICK FACTS (Editorial Portfolio Style)
   ========================================= */

.facts{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:48px;
  margin-top:40px;
  margin-bottom:20px;
  text-align:left;
}

.fact span{
  display:block;
  font-size:0.75rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:#00306E; /* pink label like example */
  margin-bottom:6px;
  font-weight:600;
}

.fact p{
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
}
/*.fact strong{
  display:block;
  font-weight:500;
  line-height:2;
  color:var(--text-muted);
}*/

.social-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.social-grid img{
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px){
  .page{ padding: 20px 20px 32px; }

  .site-header{
    flex-direction: column;
    align-items: flex-start;
  }

  .nav{ gap: 14px; }

  .hero{ margin-bottom: 28px; }

 .project-card {
  grid-template-columns: 220px 1fr 180px;
}

  .project-thumb{
    justify-self: start;
    width: 120px;
  }

  .about-layout{
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-split{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-art{ order: 1; }

  /* --- EDITORIAL CENTERED LAYOUT --- */
.project-page-body, .case-grid {
  display: block !important; /* Disables the 2-column sidebar gap */
  width: 100% !important;
  max-width: 850px !important; /* Optimized for readability */
  margin: 0 auto !important;
}

.project-page-header, .case-section {
  text-align: center !important;
  margin-bottom: 5rem;
}

/* Centered Quick Facts */
.facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Polished Video Formatting */
.editorial-video {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 48, 110, 0.1);
  margin: 0 auto;
}

/* Standardized Spacing */
.case-section h2 {
  font-size: var(--step-2);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.case-section p {
  line-height: 1.8;
  color: var(--text-muted);
}

/* --- FIX: CENTERED EDITORIAL LAYOUT --- */

/* 1. Remove the grid reservation for the 260px sidebar */
.project-page-body {
  display: block !important; 
  width: 100% !important;
  max-width: 100% !important;
}

/* 2. Center the main container and content */
.case-grid, .case-main {
  display: block !important;
  max-width: 800px !important; /* Ideal width for reading */
  margin: 0 auto !important;
}

/* 3. Global Text Centering */
.project-page-header, .case-section {
  text-align: center !important;
}

/* 4. Keep bullet points readable while centered */
.case-section ul {
  display: inline-block;
  text-align: left;
}


/* 5. Center and size the video */
.centered-video {
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
}

/* 6. Fix the "Aside" cards so they stack vertically and center */
.aside-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.aside-card {
  width: 100%;
  max-width: 500px;
  text-align: left;
}
/* --- FULL CENTERING & SIDEBAR REMOVAL --- */

/* 1. Kill the 260px reserved sidebar column */
.project-page-body, .case-grid {
  display: block !important; 
  width: 100% !important;
  max-width: 800px !important; /* Limits width for readability */
  margin: 0 auto !important;
}

/* 2. Global Alignment */
.project-page-header, .case-section, .case-main {
  text-align: center !important;
}

/* 3. Center and Scale Media */
.centered-video {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: 16px;
  margin: 2rem auto;
  display: block;
  box-shadow: var(--shadow-soft);
}

.case-image img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* 4. Center Lists & Cards */
.case-section ul {
  display: inline-block;
  text-align: left; /* Keeps bullets aligned while block is centered */
}

.summary-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.aside-card {
  width: 100%;
  max-width: 500px;
  text-align: left;
}

/*spinny gallery thing that i can't figure out yet*/
/*
.gallery-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px; 
  height: 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 48, 110, 0.08);
  border: 1px solid var(--border-subtle);
  */
  /* CRITICAL: This clips the image to the card shape 
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item img {
  /* This ensures the image covers the entire card area 
  width: 100%;
  height: 100%;
  
  /* This prevents the image from stretching/looking squished 
  object-fit: cover; 
  
  /* This centers the focus of the image 
  object-position: center; 
  
  display: block;
}

/* Make sure the section has enough height to actually scroll! */
.playground-section {
  height: 250vh; 
  margin-top: 100px;
}

.playground-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

}