/* ============================================
   MOTHS STUFF
   Golden Hour Brutalist Theme

   Color palette:
   --void           #0e0c09   near-black (warm)
   --concrete-dark  #1d1a15   dark warm gray
   --concrete-mid   #322c24   medium warm gray
   --concrete-light #756a5a   lighter warm gray
   --fog            #a09485   muted warm gray
   --mist           #c7baaa   light warm gray
   --warm-light     #e8bf82   amber gold
   ============================================ */

:root {
  --void: #0e0c09;
  --concrete-dark: #1d1a15;
  --concrete-mid: #322c24;
  --concrete-light: #756a5a;
  --fog: #a09485;
  --mist: #c7baaa;
  --warm-light: #e8bf82;
  --warm-glow: rgba(232, 191, 130, .1);
}


/* --- Reset --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  color-scheme: dark;
}

body {
  background-color: var(--void);
  color: var(--mist);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: crosshair;
}

a, button, [role="button"] {
  cursor: pointer;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

::selection {
  background: var(--warm-glow);
  color: var(--warm-light);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--concrete-mid); }
::-webkit-scrollbar-thumb:hover { background: var(--concrete-light); }


/* ============================================
   ATMOSPHERE -the golden hour gallery layers
   ============================================ */

/* Warm fog filling the gallery */
.fog-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 75%, rgba(232,191,130,.1) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 20%, rgba(232,191,130,.06) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(200,160,100,.03) 0%, transparent 65%);
  z-index: 1;
}

/* Floor-bounce warm reflection */
.fog-layer::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 150px;
  background: rgba(232,191,130,.05);
  left: 10%;
  bottom: 0;
  filter: blur(120px);
}

/* Secondary upper-left fill light */
.fog-layer::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 400px;
  background: rgba(232,191,130,.07);
  left: 20%;
  top: 10%;
  filter: blur(100px);
}

/* Raw concrete grain */
.concrete-texture {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.055'/%3E%3C/svg%3E");
  z-index: 2;
}

/* Main window light source */
.window-glow {
  pointer-events: none;
  position: fixed;
  width: 500px;
  height: 700px;
  background: rgba(232,191,130,.1);
  right: 5%;
  top: 5%;
  filter: blur(120px);
  z-index: 0;
}

/* Vignette -gallery shadows at the edges */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 60% 35%, transparent 35%, rgba(10,8,5,.6) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Light shaft -golden hour beam */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 10%, transparent 28%,
    rgba(232,191,130,.02) 34%,
    rgba(232,191,130,.055) 41%,
    rgba(232,191,130,.02) 48%,
    transparent 56%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}


/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}

.site-content {
  position: relative;
  z-index: 10;
}


/* ============================================
   NAVIGATION
   ============================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 2rem;
  background: rgba(14, 12, 9, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  color: var(--warm-light);
  font-size: .875rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--fog);
  transition: color .4s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 1px;
  width: 0;
  background-color: var(--warm-light);
  transition: width .4s ease;
}

.nav-link:hover { color: var(--warm-light); }
.nav-link:not(.active):hover::after { width: 100%; }

/* Active page indicator */
.nav-link.active {
  color: #c9735b;
}

.nav-link.active::before {
  content: "[";
  margin-right: .3em;
  color: rgba(201, 115, 91, .4);
}

.nav-link.active::after {
  content: "]";
  position: static;
  margin-left: .3em;
  width: auto;
  height: auto;
  background: none;
  color: rgba(201, 115, 91, .4);
}

.nav-link.active:hover {
  color: #d4876e;
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fog);
  cursor: pointer;
  padding: .5rem;
  z-index: 101;
}

.nav-overlay {
  display: none;
  opacity: 0;
  transition: opacity .3s ease;
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 220px;
    background: var(--concrete-dark);
    border-left: 1px solid rgba(50, 44, 36, .3);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 100;
    overflow-y: auto;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 12, 9, .7);
    z-index: 99;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Projects section: tighter on mobile */
  #projects {
    padding: 3.5rem 1.25rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 2rem;
  }

  .filter-tags {
    gap: .5rem;
  }

  .filter-tags .tag {
    font-size: .6rem;
    padding: .2rem .5rem;
  }

  /* Carousel: tighter padding on cards */
  .project-carousel .project-info {
    padding: 1rem 1.25rem 1.25rem;
  }

  .project-carousel .project-title {
    font-size: 1.1rem;
  }

  .project-carousel .project-desc {
    font-size: .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-carousel .project-tags .tag {
    font-size: .6rem;
    padding: .15rem .5rem;
  }

  .view-all-link {
    margin-top: 1.5rem;
    font-size: .7rem;
    padding: .5rem 1.25rem;
  }

  .hero {
    padding: 6rem 1.25rem 3rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: .9rem;
    margin-bottom: 2rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .site-nav {
    padding: 1rem 1.25rem;
  }

  .two-col {
    gap: 2.5rem;
  }

  .album-back svg,
  .gallery-back svg,
  .sketches-back svg,
  .highlights-back svg,
  .projects-back svg,
  .blog-back svg {
    flex-shrink: 0;
  }
}


/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-inner {
  max-width: 42rem;
}

/* Idle whisper messages -right side of hero */
.idle-whispers {
  flex: 1;
  position: relative;
  min-height: 200px;
  display: none;
}

.idle-whisper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateY(8px);
  max-width: 16rem;
  text-align: right;
  color: var(--concrete-light);
  font-size: .85rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-title {
  color: var(--mist);
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-subtitle {
  color: var(--fog);
  font-size: 1rem;
  line-height: 1.625;
  max-width: 28rem;
  margin-bottom: 3rem;
}

.hero-label {
  color: var(--concrete-light);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}


/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 5rem 2rem;
  border-top: 1px solid rgba(50, 44, 36, .3);
}

#projects {
  background: rgba(29, 26, 21, .2);
  border-bottom: 1px solid rgba(50, 44, 36, .3);
  position: relative;
}

/* Flowing wave divider above projects */
.wave-divider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 11;
}

.wave-divider canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-number {
  display: inline-flex;
  align-items: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--warm-light);
  opacity: .55;
  margin-bottom: .75rem;
}

.section-title {
  color: var(--mist);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -.025em;
}

.section-title.mb {
  margin-bottom: 2rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ============================================
   PROJECT GRID -the main attraction
   ============================================ */

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

.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 191, 130, .1);
  border-top: 2px solid rgba(232, 191, 130, .18);
  background-color: var(--concrete-dark);
  box-shadow:
    0 0 0 1px rgba(232, 191, 130, .04) inset,
    0 6px 20px rgba(0, 0, 0, .3);
  transition: border-color .5s ease, box-shadow .5s ease;
}

a.project-card:hover {
  border-color: rgba(232, 191, 130, .22);
}

/* Warm glow on hover (linked cards only) */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, transparent 0%, var(--warm-glow) 50%, transparent 100%);
  transition: opacity .5s ease;
  z-index: 1;
}

a.project-card:hover::before {
  opacity: 1;
}

.project-image {
  aspect-ratio: 4/3;
  width: 100%;
  overflow: hidden;
  background-color: var(--concrete-dark);
  position: relative;
  /* noise texture shows when no image is present */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
}

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

/* Warm amber wash + vignette over all project images */
.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(14, 12, 9, .45) 100%),
    linear-gradient(180deg, rgba(232, 191, 130, .08) 0%, rgba(232, 191, 130, .04) 50%, rgba(14, 12, 9, .15) 100%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: normal;
}

/* Warm color grading on the image itself */
.project-image img {
  filter: sepia(.12) saturate(.85) brightness(.95);
  transition: filter .5s ease, transform .6s ease, opacity .6s ease;
}

a.project-card:hover .project-image img {
  filter: sepia(.06) saturate(.95) brightness(1);
}

/* Bottom fade on image -clean image-to-text transition */
.project-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent 0%, rgba(29, 26, 21, .3) 60%, rgba(29, 26, 21, .55) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Button-pair images: swap inert → hover on card hover */
.project-image .img-hover {
  display: none;
}

a.project-card:hover .project-image .img-inert {
  display: none;
}

a.project-card:hover .project-image .img-hover {
  display: block;
}

/* Badge -decorative icon hanging off card corner */
.project-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 54px;
  height: 54px;
  object-fit: contain;
  transform: rotate(-12deg);
  z-index: 3;
  opacity: .65;
  filter: grayscale(.2);
  pointer-events: none;
  transition: transform .4s ease, opacity .4s ease;
}

a.project-card:hover .project-badge {
  transform: rotate(-6deg) scale(1.08);
  opacity: .85;
}

.project-info {
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(232, 191, 130, .06);
}

.project-date {
  display: block;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--concrete-light);
  opacity: .7;
  margin-bottom: .35rem;
}

.project-title {
  color: var(--mist);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -.025em;
  transition: color .3s ease;
  margin-bottom: .5rem;
}

/* Homepage carousel -one project at a time, full width */
.project-carousel {
  position: relative;
}

.project-carousel .project-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  scrollbar-width: none;
}

.project-carousel .project-grid::-webkit-scrollbar {
  display: none;
}

.project-carousel .project-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

/* Carousel card image: shorter on mobile */
.project-carousel .project-image {
  aspect-ratio: 16/9;
}

/* Uniform card image: crop + zoom-out on hover */
.project-carousel .project-image img {
  transform: scale(1.08);
  transition: filter .5s ease, transform .6s ease, opacity .6s ease;
}

a.project-card:hover .project-image img.loaded {
  transform: scale(1);
  filter: sepia(.06) saturate(.95) brightness(1);
}

/* Arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 191, 130, .15);
  background: rgba(14, 12, 9, .75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--fog);
  cursor: pointer;
  z-index: 5;
  transition: all .3s ease, opacity .4s ease;
}

.carousel-arrow:hover {
  border-color: rgba(232, 191, 130, .35);
  color: var(--warm-light);
  background: rgba(14, 12, 9, .85);
}

.carousel-arrow svg {
  width: 14px;
  height: 14px;
}

/* On mobile: arrows sit inside the card, overlapping the image edges */
.carousel-arrow-prev { left: 6px; }
.carousel-arrow-next { right: 6px; }

/* Progress bar + counter */
.carousel-progress {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
}

.carousel-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(232, 191, 130, .08);
  position: relative;
  overflow: hidden;
}

.carousel-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--warm-light);
  opacity: .5;
  transition: width .3s ease, left .3s ease;
}

.carousel-counter {
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--concrete-light);
  white-space: nowrap;
  min-width: 2.5rem;
  text-align: right;
}

a.project-card:hover .project-title {
  color: var(--warm-light);
}

.project-desc {
  color: var(--fog);
  font-size: .85rem;
  line-height: 1.625;
  opacity: .88;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}


/* ============================================
   TAGS
   ============================================ */

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(232, 191, 130, .15);
  background: rgba(232, 191, 130, .05);
  padding: .25rem .75rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--fog);
}


/* ============================================
   UPDATES
   ============================================ */

.updates-list {
  background: rgba(29, 26, 21, .5);
  border: 1px solid rgba(50, 44, 36, .3);
  padding: 1.5rem;
}

.update-item {
  padding: 1rem .5rem;
  border-bottom: 1px solid rgba(50, 44, 36, .3);
  transition: background .3s ease;
}

.update-item:last-child {
  border-bottom: 0;
}

.update-date {
  display: block;
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--concrete-light);
  margin-bottom: .25rem;
}

.update-text {
  color: var(--mist);
  font-size: .875rem;
  line-height: 1.625;
}


/* ============================================
   ABOUT
   ============================================ */

.about-text {
  color: var(--mist);
  line-height: 1.625;
}

.about-text p + p {
  margin-top: 1rem;
}

.interests-heading {
  color: var(--mist);
  font-size: .875rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}


/* ============================================
   BLOG PREVIEW (homepage)
   ============================================ */

#blog-preview {
  background: rgba(29, 26, 21, .25);
  position: relative;
}

/* Warm glow pooling at the top of the blog section */
#blog-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 120px;
  background: rgba(232, 191, 130, .04);
  filter: blur(60px);
  pointer-events: none;
}

.blog-preview-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-preview-item {
  display: block;
  background: rgba(29, 26, 21, .5);
  border: 1px solid rgba(50, 44, 36, .3);
  border-left: 2px solid rgba(232, 191, 130, .2);
  padding: 1.25rem 1.5rem;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.blog-preview-item:hover {
  border-color: rgba(232, 191, 130, .22);
  border-left-color: rgba(232, 191, 130, .45);
  background: rgba(232, 191, 130, .03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}

.blog-preview-item:hover .blog-preview-title {
  color: var(--warm-light);
}

.blog-preview-date {
  display: block;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--concrete-light);
  opacity: .7;
  margin-bottom: .35rem;
}

.blog-preview-title {
  color: var(--mist);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -.025em;
  transition: color .3s ease;
  margin-bottom: .5rem;
}

.blog-preview-excerpt {
  color: var(--fog);
  font-size: .85rem;
  line-height: 1.625;
  opacity: .88;
}


/* ============================================
   EXTERNAL LINKS
   ============================================ */

.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.external-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(29, 26, 21, .5);
  border: 1px solid rgba(50, 44, 36, .3);
  padding: 1rem;
  color: var(--fog);
  font-size: .875rem;
  letter-spacing: .025em;
  transition: all .2s ease;
}

.external-link:hover {
  color: var(--warm-light);
  border-color: rgba(79, 70, 55, .5);
}


/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(50, 44, 36, .3);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-left {
  color: var(--concrete-light);
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.footer-right {
  color: var(--fog);
  font-size: .75rem;
}


/* ============================================
   TWO-COLUMN LAYOUT (Updates + About)
   ============================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
  .site-nav { padding: 2rem 4rem; }
  .hero { padding: 8rem 4rem 5rem; }
  .idle-whispers { display: block; }
  .hero-title { font-size: 3.75rem; }
  .hero-subtitle { font-size: 1.125rem; }
  .section { padding: 5rem 4rem; }
  #projects { padding: 7rem 4rem; }
  .section-title { font-size: 1.875rem; }
  .project-card {
    flex-direction: row;
    height: 280px;
    max-height: 280px;
  }
  .project-image {
    width: 38%;
    aspect-ratio: unset;
    min-height: 100%;
  }
  .project-image::after {
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(29, 26, 21, .25) 60%, rgba(29, 26, 21, .5) 100%);
  }
  .project-info {
    border-top: none;
    border-left: 1px solid rgba(232, 191, 130, .06);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .project-title {
    font-size: 1.5rem;
    margin-bottom: .6rem;
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }
  .carousel-arrow-prev { left: -24px; }
  .carousel-arrow-next { right: -24px; }
  .project-carousel .project-image {
    aspect-ratio: unset;
  }
  .link-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
  .project-title { font-size: 1.75rem; }
  .two-col { grid-template-columns: 1fr 1fr; }
}


/* ============================================
   RITUAL GEOMETRY -ZoE / PSO inspired
   Slowly revolving sacred geometry sigils,
   floating dust particles, warm cursor light
   ============================================ */

/* --- Animations --- */

@keyframes slow-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes counter-spin {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes inner-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float-up {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% { opacity: var(--p-opacity, 0.25); }
  90% { opacity: var(--p-opacity, 0.25); }
  100% {
    transform: translateY(-100vh) translateX(var(--p-drift, 20px));
    opacity: 0;
  }
}

@keyframes pulse-glow {
  0%, 100% { opacity: .12; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.3); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* --- Sacred Geometry Sigil --- */

.sigil {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.sigil-hero {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
}

.sigil .ring-outer {
  animation: counter-spin 120s linear infinite;
  transform-origin: center;
}

.sigil .ring-mid {
  animation: inner-spin 90s linear infinite;
  transform-origin: center;
}

.sigil .ring-inner {
  animation: counter-spin 60s linear infinite;
  transform-origin: center;
}

.sigil .orbital-dot {
  animation: pulse-glow 6s ease-in-out infinite;
}

.sigil .orbital-dot-slow {
  animation: pulse-glow 8s ease-in-out infinite;
  animation-delay: -3s;
}


/* --- Floating Particles (dust in light beams) --- */

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--warm-light);
  box-shadow: 0 0 6px rgba(232, 191, 130, .3);
  animation: float-up var(--p-dur, 20s) linear infinite;
  animation-delay: var(--p-delay, 0s);
  bottom: -10px;
  opacity: 0;
}


/* --- Cursor-following warm light --- */

.cursor-light {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
    rgba(232,191,130,.06) 0%,
    rgba(232,191,130,.02) 40%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 4;
  will-change: left, top;
  display: none;
}


/* --- Enhanced project card light spill --- */

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(232,191,130,.07) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .5s ease;
  z-index: 1;
  pointer-events: none;
}

a.project-card:hover::after {
  opacity: 1;
}

a.project-card:hover {
  box-shadow:
    0 0 0 1px rgba(232, 191, 130, .08) inset,
    0 10px 40px rgba(0, 0, 0, .35),
    0 0 20px rgba(232, 191, 130, .06);
}


/* Shimmer replaced by warm wash + vignette on .project-image::before (defined above) */


/* --- Nav warm underglow --- */

.site-nav::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 15%;
  right: 15%;
  height: 50px;
  background: rgba(232, 191, 130, .03);
  filter: blur(25px);
  pointer-events: none;
}


/* --- Section number codec indicator (MGS2 inspired) --- */

.section-number::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  background: var(--warm-light);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  animation: pulse-glow 4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(232, 191, 130, .4);
}

.section-number::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, rgba(232, 191, 130, .25), transparent);
  margin-left: 12px;
  flex-shrink: 0;
}


/* --- Hero title warm glow --- */

.hero-title {
  text-shadow: 0 0 80px rgba(232, 191, 130, .08);
}


/* --- External link hover glow --- */

.external-link:hover {
  box-shadow: 0 4px 30px rgba(232, 191, 130, .05);
}


/* --- Tag hover warmth --- */

.tag {
  transition: all .3s ease;
}

.tag:hover {
  border-color: rgba(232, 191, 130, .2);
  color: var(--warm-light);
  box-shadow: 0 0 12px rgba(232, 191, 130, .06);
}

/* --- Filter tags (clickable category tags) --- */

.filter-tag {
  cursor: pointer;
  user-select: none;
}

.filter-tag.active {
  border-color: rgba(232, 191, 130, .35);
  background: rgba(232, 191, 130, .12);
  color: var(--warm-light);
  box-shadow: 0 0 10px rgba(232, 191, 130, .08);
}


/* --- View all projects link --- */

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 2.5rem;
  padding: .6rem 1.5rem;
  border: 1px solid rgba(232, 191, 130, .2);
  background: rgba(232, 191, 130, .05);
  color: var(--warm-light);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .3s ease;
}

.view-all-link:hover {
  border-color: rgba(232, 191, 130, .4);
  background: rgba(232, 191, 130, .1);
  box-shadow: 0 0 15px rgba(232, 191, 130, .08);
}

.view-all-link svg {
  width: 14px;
  height: 14px;
  transition: transform .3s ease;
}

.view-all-link:hover svg {
  transform: translateX(3px);
}


/* --- Update item hover --- */

.update-item:hover {
  background: rgba(232, 191, 130, .03);
}


/* ============================================
   SCROLL REVEAL -elements fade in on scroll
   ============================================ */

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* All revealable elements start hidden */
.reveal {
  opacity: 0;
}

.reveal.visible {
  animation: reveal-up .8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Stagger project cards */
.project-card.reveal.visible {
  animation-duration: .6s;
}


/* ============================================
   PAGE LOAD -initial staggered fade-in
   ============================================ */

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-nav .container {
  animation: fade-in-down .8s .1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-title {
  animation: fade-in-up .9s .3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-subtitle {
  animation: fade-in-up .9s .5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-label {
  animation: fade-in-up .9s .7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.sigil-hero {
  animation: slow-spin 240s linear infinite, fade-in-up 2s .2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}


/* ============================================
   FOCUS STATES -accessibility
   ============================================ */

:focus-visible {
  outline: 1px solid var(--warm-light);
  outline-offset: 3px;
}

.nav-link:not(.active):focus-visible::after {
  width: 100%;
}

.project-card:focus-visible {
  outline: 1px solid rgba(232, 191, 130, .4);
  outline-offset: 2px;
}

.external-link:focus-visible {
  outline: 1px solid rgba(232, 191, 130, .4);
  outline-offset: 2px;
  color: var(--warm-light);
}


/* ============================================
   IMAGE LOADING -fade in when loaded
   ============================================ */

.project-image img {
  opacity: 0;
  transition: filter .5s ease, transform .6s ease, opacity .6s ease;
}

.project-image img.loaded {
  opacity: 1;
}


/* ============================================
   REDUCED MOTION -respect user preferences
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; }
  .project-image img { opacity: 1; }
  html { scroll-behavior: auto; }
}
