/* Basic layout + gallery styles (re-created minimal subset after accidental deletion) */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f4;
  --text: #315640;
  --text-muted: #5a6b62;
  --accent: #52af79;
  --accent-dark: #315640;
  --border: #e5e7e6;
  --radius: 6px;
  --font-display: "Roboto", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
  --space: clamp(1rem, 3vw, 3rem);
  --space-narrow: clamp(0.75rem, 2vw, 1.5rem);
  --max-width: 1200px;
  --touch-target: 44px;
  --header-height: clamp(56px, 12vw, 72px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  line-height: 1.6;
  color: var(--text);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201024%201024%27%3E%3Crect%20fill=%27rgba(49,86,64,0.0071)%27%20width=%27121%27%20height=%2754%27%20x=%2725%27%20y=%27759%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0132)%27%20width=%2768%27%20height=%2757%27%20x=%27754%27%20y=%27104%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0035)%27%20width=%27109%27%20height=%2751%27%20x=%27604%27%20y=%27432%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.012)%27%20width=%2751%27%20height=%2767%27%20x=%27238%27%20y=%27517%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0135)%27%20width=%27111%27%20height=%2765%27%20x=%27733%27%20y=%27665%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0072)%27%20width=%2793%27%20height=%2768%27%20x=%27459%27%20y=%27603%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0135)%27%20width=%2740%27%20height=%27137%27%20x=%27825%27%20y=%27163%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0174)%27%20width=%2783%27%20height=%2775%27%20x=%27159%27%20y=%27220%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0045)%27%20width=%2783%27%20height=%2753%27%20x=%2794%27%20y=%27389%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0037)%27%20width=%2784%27%20height=%27117%27%20x=%27270%27%20y=%27826%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0087)%27%20width=%2798%27%20height=%27108%27%20x=%27127%27%20y=%27944%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0123)%27%20width=%27110%27%20height=%2777%27%20x=%27849%27%20y=%27643%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.004)%27%20width=%2786%27%20height=%27113%27%20x=%27196%27%20y=%27721%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0178)%27%20width=%27124%27%20height=%2769%27%20x=%27791%27%20y=%27296%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0098)%27%20width=%2769%27%20height=%2752%27%20x=%27389%27%20y=%27284%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0061)%27%20width=%2786%27%20height=%2760%27%20x=%27379%27%20y=%27363%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0127)%27%20width=%2774%27%20height=%27129%27%20x=%27959%27%20y=%27699%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0139)%27%20width=%27117%27%20height=%27121%27%20x=%27175%27%20y=%27546%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0178)%27%20width=%2760%27%20height=%2799%27%20x=%27388%27%20y=%27276%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0133)%27%20width=%27121%27%20height=%27128%27%20x=%27570%27%20y=%27224%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0153)%27%20width=%27138%27%20height=%27139%27%20x=%2757%27%20y=%27234%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0062)%27%20width=%2780%27%20height=%2791%27%20x=%27274%27%20y=%2767%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0128)%27%20width=%27112%27%20height=%27131%27%20x=%27322%27%20y=%27217%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.007)%27%20width=%2790%27%20height=%27122%27%20x=%27469%27%20y=%27146%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0069)%27%20width=%2771%27%20height=%27135%27%20x=%27574%27%20y=%27551%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.009)%27%20width=%27114%27%20height=%2794%27%20x=%27919%27%20y=%27597%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0044)%27%20width=%2768%27%20height=%2757%27%20x=%27521%27%20y=%27505%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0054)%27%20width=%2746%27%20height=%2754%27%20x=%27156%27%20y=%27642%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0088)%27%20width=%27127%27%20height=%2794%27%20x=%27610%27%20y=%2765%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0176)%27%20width=%27116%27%20height=%2799%27%20x=%27541%27%20y=%27257%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0132)%27%20width=%2741%27%20height=%27127%27%20x=%27738%27%20y=%27117%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0126)%27%20width=%27108%27%20height=%27136%27%20x=%27273%27%20y=%27787%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0098)%27%20width=%2754%27%20height=%2777%27%20x=%27445%27%20y=%27161%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0144)%27%20width=%27132%27%20height=%27132%27%20x=%27269%27%20y=%27512%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0075)%27%20width=%27104%27%20height=%2753%27%20x=%27891%27%20y=%27640%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0053)%27%20width=%27121%27%20height=%27104%27%20x=%27623%27%20y=%27203%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0168)%27%20width=%27137%27%20height=%2760%27%20x=%27552%27%20y=%27797%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0033)%27%20width=%2740%27%20height=%27116%27%20x=%27331%27%20y=%27500%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0066)%27%20width=%2786%27%20height=%2779%27%20x=%27245%27%20y=%2759%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0103)%27%20width=%27112%27%20height=%2750%27%20x=%2787%27%20y=%27749%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0049)%27%20width=%2748%27%20height=%27137%27%20x=%27545%27%20y=%27784%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.007)%27%20width=%27124%27%20height=%27100%27%20x=%27562%27%20y=%27169%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0111)%27%20width=%27117%27%20height=%2794%27%20x=%27216%27%20y=%27951%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0077)%27%20width=%27133%27%20height=%27128%27%20x=%27205%27%20y=%27730%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0165)%27%20width=%27125%27%20height=%27123%27%20x=%27382%27%20y=%27448%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.004)%27%20width=%2797%27%20height=%2755%27%20x=%27253%27%20y=%27230%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0118)%27%20width=%2742%27%20height=%27115%27%20x=%27567%27%20y=%27235%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0039)%27%20width=%2740%27%20height=%2749%27%20x=%27724%27%20y=%27646%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0041)%27%20width=%2748%27%20height=%2744%27%20x=%27880%27%20y=%27338%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0062)%27%20width=%2770%27%20height=%2775%27%20x=%27685%27%20y=%27497%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0116)%27%20width=%2756%27%20height=%27132%27%20x=%27957%27%20y=%27903%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0151)%27%20width=%27100%27%20height=%2771%27%20x=%27803%27%20y=%27484%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0095)%27%20width=%2764%27%20height=%2752%27%20x=%2799%27%20y=%27674%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0139)%27%20width=%2794%27%20height=%2792%27%20x=%27478%27%20y=%27884%27/%3E%3Crect%20fill=%27rgba(49,86,64,0.0039)%27%20width=%27126%27%20height=%27123%27%20x=%27661%27%20y=%27100%27/%3E%3C/svg%3E");

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--space);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid transparent;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text);
}

.logo img {
  height: clamp(28px, 6vw, 36px);
  width: auto;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}



.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(49, 86, 64, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.hero {
  min-height: 85vh;
  padding: calc(4rem + var(--header-height)) var(--space) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: max(3rem, 6vw);
  align-items: center;
}

.hero-copy {
  max-width: 26rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 400;
  margin: 0 0 0.35rem;
  word-spacing: -0.04em;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.hero-showcase-frame {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow:
    0 18px 48px rgba(49, 86, 64, 0.22),
    0 0 0 6px rgba(82, 175, 121, 0.2),
    0 0 40px 12px rgba(82, 175, 121, 0.22),
    0 0 80px 28px rgba(49, 86, 64, 0.14);
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.hero-showcase-frame:hover {
  box-shadow:
    0 24px 56px rgba(49, 86, 64, 0.28),
    0 0 0 6px rgba(82, 175, 121, 0.32),
    0 0 50px 16px rgba(82, 175, 121, 0.3),
    0 0 100px 36px rgba(49, 86, 64, 0.2);
  transform: translateY(-4px) scale(1.01);
}

.hero-showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) var(--space);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin: 0 0 2.5rem;
}

/* Card-style panels for About, Resume, Contact */
.about-inner,
.resume,
.contact-inner {
  background: rgba(245, 245, 244, 0.9);
  border-radius: clamp(10px, 1.2vw, 14px);
  border: 1px solid rgba(229, 231, 230, 0.85);
  box-shadow: 0 14px 40px rgba(49, 86, 64, 0.16);
}

.about-inner {
  padding: clamp(1.75rem, 3vw, 2.25rem);
}

.resume {
  padding: clamp(2.25rem, 4vw, 3rem);
}

.contact-inner {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.gallery {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.gallery-item {
  flex: 0 0 min(280px, min(90vw, 400px));
  scroll-snap-align: start;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(49, 86, 64, 0.2);
}

.gallery-image-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

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

.gallery-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gallery-category {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gallery-name {
  font-weight: 400;
  font-size: 1rem;
}

/* Play button overlay for video items */
.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-icon::before {
  content: '';
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 24px rgba(49, 86, 64, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-icon::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.gallery-item:hover .play-icon::before {
  transform: scale(1.12);
  background: var(--accent-dark);
}

/* Hide project years while keeping structure intact */
.gallery-year,
.hero-showcase-year {
  display: none !important;
}

/* Carousel wrapper */
.work-group {
  position: relative;
  padding: 0 2rem;
}

.gallery {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

/* Carousel arrows */
.gallery-nav {
  position: absolute;
  top: calc(50% - 2rem);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(49, 86, 64, 0.2);
  background: #ffffff;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(49, 86, 64, 0.15);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  z-index: 10;
}

.gallery-nav:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 8px 24px rgba(49, 86, 64, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-prev {
  left: -16px;
}

.gallery-nav-next {
  right: -16px;
}

@media (max-width: 768px) {
  .work-group {
    padding: 0 0.5rem;
  }
  .gallery-nav-prev {
    left: -8px;
  }
  .gallery-nav-next {
    right: -8px;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox.open .lightbox-backdrop {
  animation: lb-backdrop-in 0.35s ease forwards;
}

.lightbox.open .lightbox-dialog {
  animation: lb-genie-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lightbox.closing .lightbox-backdrop {
  animation: lb-backdrop-out 0.28s ease forwards;
}

.lightbox.closing .lightbox-dialog {
  animation: lb-genie-out 0.32s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes lb-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lb-backdrop-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Genie open: starts tiny and squished at the card origin, stretches up into full size */
@keyframes lb-genie-in {
  0% {
    opacity: 0;
    transform: scale(0.05) translateY(40px);
    clip-path: inset(45% 30% 45% 30% round 12px);
  }
  25% {
    opacity: 1;
    clip-path: inset(30% 10% 5% 10% round 10px);
  }
  60% {
    transform: scale(1.03) translateY(-6px);
    clip-path: inset(0% 0% 0% 0% round 8px);
  }
  80% {
    transform: scale(0.98) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    clip-path: inset(0% 0% 0% 0% round 8px);
  }
}

/* Genie close: pinches to a narrow column then zips back to origin */
@keyframes lb-genie-out {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    clip-path: inset(0% 0% 0% 0% round 8px);
  }
  20% {
    transform: scale(1) translateY(4px);
    clip-path: inset(0% 0% 0% 0% round 8px);
  }
  55% {
    opacity: 1;
    clip-path: inset(5% 35% 5% 35% round 12px);
    transform: scale(0.6) translateY(20px);
  }
  85% {
    opacity: 0.4;
    clip-path: inset(40% 42% 40% 42% round 14px);
    transform: scale(0.15) translateY(38px);
  }
  100% {
    opacity: 0;
    transform: scale(0.05) translateY(45px);
    clip-path: inset(49% 48% 49% 48% round 16px);
  }
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 20, 0.55);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  width: min(860px, calc(100vw - 2 * var(--space)));
  margin: 0 auto;
  background: var(--bg);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.lightbox-body {
  background: transparent;
}

.lightbox-media-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.lightbox-media-frame iframe,
.lightbox-media-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-embed-wrap {
  width: 100%;
  height: 100%;
  display: flex;
}

.lightbox-caption {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lightbox-close,
.lightbox-nav {
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 10;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.site-footer {
  padding: 1.5rem var(--space);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

/* Resume preview: full page visible, no inner scrollbars */
.resume-preview-wrap {
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(49, 86, 64, 0.08);
  border: 1px solid var(--border);
  max-width: 560px;
}

.resume-preview-inner {
  overflow: hidden;
}

.resume-preview-wrap iframe {
  width: 560px;
  height: 720px;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .resume-preview-wrap {
    width: 100%;
    max-width: 100%;
  }

  .resume-preview-inner {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .resume-preview-wrap iframe {
    width: 560px;
    height: 720px;
    transform: scale(var(--resume-mobile-scale, calc(100vw / 560)));
    transform-origin: top left;
  }
}

/* ── Tablet layout (769px – 1024px) ─────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Nav stays visible (desktop style) but tighter */
  .menu-toggle {
    display: none;
  }

  .nav {
    gap: clamp(0.75rem, 2vw, 1.25rem);
  }

  .nav a {
    font-size: 0.85rem;
  }

  /* Hero: stack vertically like mobile but keep larger text */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }

  .hero-showcase {
    max-width: 520px;
    margin: 0 auto;
  }

  /* Gallery cards: show 2 at a time */
  .gallery-item {
    flex: 0 0 min(42vw, 340px);
  }

  /* Resume preview */
  .resume-preview-wrap {
    max-width: 100%;
  }

  .resume-preview-wrap iframe {
    width: 560px;
    height: 720px;
    transform: scale(var(--resume-tablet-scale, 1));
    transform-origin: top left;
  }

  /* Contact: 2-column wrap */
  .contact-inner {
    flex-wrap: wrap;
  }

  .contact-inner > .btn {
    flex: 1 1 180px;
  }
}

.contact-inner > .btn {
  flex: 1 1 220px;
  text-align: center;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.socials .btn {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .contact-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .contact-inner > .btn,
  .socials .btn {
    width: auto;
    flex: 0 0 auto;
  }

  .socials {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-height) + 0.75rem);
    right: 0;
    width: min(85vw, 300px);
    margin: 0;
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 99;
  }

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

  .nav a {
    font-size: 0.95rem;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    width: 100%;
    justify-content: flex-end;
  }

  .nav-group {
    align-items: flex-end;
    width: 100%;
  }

  .nav-sub {
    position: static;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0 0;
    border-radius: 0;
  }

  .lightbox-media-frame {
    max-height: 70vh;
  }
}


/* ══════════════════════════════════════════════════════════════════
   MOTION & ANIMATION SYSTEM
   ══════════════════════════════════════════════════════════════════ */

/* ── Page enter ─────────────────────────────────────────────────── */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
body {
  animation: page-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Header: slide down on load ─────────────────────────────────── */
@keyframes header-drop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.site-header {
  animation: header-drop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 24px rgba(49,86,64,0.1);
  border-color: var(--border);
}

/* ── Logo: subtle float + color shift on hover ──────────────────── */
.logo {
  transition: color 0.22s ease, transform 0.22s ease;
}
.logo:hover {
  color: var(--accent);
  transform: translateY(-1px);
}
.logo img {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover img {
  transform: scale(1.15);
}

/* ── Nav links: animated underline sweep ────────────────────────── */
.nav a {
  position: relative;
  transition: color 0.2s ease;
}
.nav a:not(.nav-link-main)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:not(.nav-link-main):hover::after,
.nav a.active::after {
  width: 100%;
}
.nav a.active {
  color: var(--accent-dark);
}

/* ── Hero title: words stagger in ──────────────────────────────── */
@keyframes word-rise {
  from { opacity: 0; transform: translateY(30px) skewY(2deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}
.hero-title-word {
  display: inline-block;
  animation: word-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-title-word:nth-child(1) { animation-delay: 0.15s; }
.hero-title-word:nth-child(2) { animation-delay: 0.3s;  }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-label  { animation: fade-up 0.6s 0.45s cubic-bezier(0.22,1,0.36,1) both; }
.hero-desc   { animation: fade-up 0.6s 0.6s  cubic-bezier(0.22,1,0.36,1) both; }

/* ── Hero showcase: slide in from right ─────────────────────────── */
@keyframes slide-left {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero-showcase {
  animation: slide-left 0.75s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Hero frame: slow float loop ───────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.hero-showcase-frame {
  animation: float 5s ease-in-out infinite;
}

/* ── Scroll reveal (JS adds .reveal class, .in triggers) ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.in {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right.in {
  opacity: 1;
  transform: translateX(0);
}

/* ── Section titles: accent bar slides in ──────────────────────── */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s;
}
.reveal.in .section-title::after,
.section-title.bar-in::after {
  width: 100%;
}

/* ── Gallery cards: image zoom + color overlay on hover ─────────── */
.gallery-image-wrap {
  overflow: hidden;
}
.gallery-image-wrap img {
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.gallery-item:hover .gallery-image-wrap img {
  transform: scale(1.07);
}
.gallery-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(82,175,121,0.18) 0%, rgba(49,86,64,0.1) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: var(--radius);
  pointer-events: none;
}
.gallery-item:hover .gallery-image-wrap::after {
  opacity: 1;
}

/* ── Gallery meta: slide up on hover ───────────────────────────── */
.gallery-meta {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.gallery-item:hover .gallery-meta {
  transform: translateY(-3px);
}
.gallery-name {
  transition: color 0.2s ease;
}
.gallery-item:hover .gallery-name {
  color: var(--accent-dark);
}

/* ── Gallery item: stagger on load ─────────────────────────────── */
@keyframes card-pop {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.gallery-item {
  animation: card-pop 0.5s cubic-bezier(0.34,1.3,0.64,1) both;
}
.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.12s; }
.gallery-item:nth-child(3) { animation-delay: 0.19s; }
.gallery-item:nth-child(4) { animation-delay: 0.26s; }
.gallery-item:nth-child(5) { animation-delay: 0.33s; }
.gallery-item:nth-child(6) { animation-delay: 0.40s; }
.gallery-item:nth-child(7) { animation-delay: 0.47s; }
.gallery-item:nth-child(8) { animation-delay: 0.54s; }

/* ── Buttons: ripple + glow ─────────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.btn:hover::before {
  opacity: 1;
}

/* ── About card: border glow on hover ──────────────────────────── */
.about-inner {
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.about-inner:hover {
  box-shadow: 0 20px 56px rgba(49,86,64,0.22);
  border-color: rgba(82,175,121,0.4);
  transform: translateY(-3px);
}

/* ── Work group titles: tag pill style + slide in ───────────────── */
.work-group-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(82,175,121,0.12);
  border: 1px solid rgba(82,175,121,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.work-group:hover .work-group-title {
  background: rgba(82,175,121,0.22);
  border-color: rgba(82,175,121,0.55);
  transform: translateX(4px);
}

/* ── Carousel arrows: pulse ring on hover ───────────────────────── */
.gallery-nav::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.gallery-nav:hover::after {
  opacity: 0.55;
  transform: scale(1);
}

/* ── Play button: breathing pulse ──────────────────────────────── */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(82,175,121,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(82,175,121,0); }
  100% { box-shadow: 0 0 0 0   rgba(82,175,121,0); }
}
.play-icon::before {
  animation: pulse-ring 2s ease-out infinite;
}

/* ── Resume block: hover lift ───────────────────────────────────── */
.resume-block {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  border-radius: var(--radius);
  padding: 0.5rem;
}
.resume-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(49,86,64,0.1);
  background: rgba(82,175,121,0.05);
}

/* ── Footer: fade up ────────────────────────────────────────────── */
.site-footer {
  transition: color 0.3s ease;
}

/* ── Cursor glow (desktop only) ─────────────────────────────────── */
@media (pointer: fine) {
  .cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(82,175,121,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.08s ease, top 0.08s ease;
  }
}

/* ── Page transition out ────────────────────────────────────────── */
@keyframes page-exit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}
body.is-leaving {
  animation: page-exit 0.25s ease forwards;
}

/* ── Reduced motion: strip all animation ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Prototype link under gallery card ─────────────────────────── */
.gallery-prototype-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(82,175,121,0.4);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.gallery-prototype-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════════
   BATCH FIXES
   ══════════════════════════════════════════════════════════════════ */

/* ── Gallery arrow: point down and fill label width on hover ────── */
.gallery-nav {
  font-size: 22px;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
              transform 0.22s cubic-bezier(0.34,1.56,0.64,1), width 0.22s ease, border-radius 0.22s ease;
}
.gallery-nav-prev:hover,
.gallery-nav-next:hover {
  transform: translateY(-50%) rotate(90deg) scale(1.1);
}

/* ── Nav dropdown: wider invisible bridge so cursor doesn't fall off */
.nav-group::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 24px;
  background: transparent;
}
.nav-sub {
  margin-top: 0 !important;
  padding-top: 24px !important;
  top: calc(100% - 0px);
}

/* ── Nav: vertically center Gallery text with other links ────────── */
.nav-link-main {
  line-height: inherit;
  vertical-align: middle;
  height: 100%;
  display: inline-flex;
  align-items: center;
}
.nav > a, .nav-group {
  display: flex;
  align-items: center;
}

/* ── Mobile: dropdown opens left ────────────────────────────────── */
@media (max-width: 768px) {
  .nav-sub {
    position: absolute !important;
    right: 100% !important;
    left: auto !important;
    top: 0 !important;
    padding-top: 0.5rem !important;
    margin-top: 0 !important;
    min-width: 130px;
    flex-direction: column !important;
  }
}

/* ── About text: outside the card box ────────────────────────────── */
.about-inner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.about-inner:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.about-content p {
  color: var(--text);
}
.about-lead {
  font-size: 1.05rem;
  font-weight: 400;
}

/* ── Time Flies thumbnail: show face not obscured by play button ─── */
.video-item .gallery-image-wrap img {
  object-position: center top;
}

/* ── Body background: enable parallax scrolling ──────────────────── */
body {
  background-attachment: local;
  background-repeat: repeat;
  background-size: 1024px 1024px;
}

/* ══════════════════════════════════════════════════════════════════
   GALLERY NAV ARROW — full-width down bar replacing "Gallery" text
   ══════════════════════════════════════════════════════════════════ */

/* The nav-group stretches to match the sub-menu width on hover */
.nav-group {
  position: relative;
}

/* gallery-label and gallery-arrow share the same space */
.nav-link-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.nav-link-main .gallery-label {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

/* Arrow: hidden by default, stretches to match dropdown width via --sub-w */
.nav-link-main .gallery-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  width: var(--sub-w, 100%);
  background: transparent;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* On hover/open: hide the label, show the arrow */
.nav-group:hover .nav-link-main .gallery-label,
.nav-group.open .nav-link-main .gallery-label {
  opacity: 0;
  transform: translateY(-4px);
}

.nav-group:hover .nav-link-main .gallery-arrow,
.nav-group.open .nav-link-main .gallery-arrow {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Nav group stays its natural width — no expansion on hover */

/* Desktop: make the sub-menu appear naturally below; bridge gap */
@media (min-width: 769px) {
  .nav-sub {
    top: calc(100% + 8px) !important;
    padding-top: 0.5rem !important;
    margin-top: 0 !important;
  }
  /* invisible bridge so mouse can travel down to dropdown */
  .nav-group::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 16px;
    background: transparent;
    z-index: 9;
  }
}


/* ── Parallax bg layer fallback (JS sets background-image dynamically) ── */
#bg-parallax {
  background-size: 1024px 1024px !important;
  background-repeat: repeat !important;
  will-change: background-position;
}

/* Ensure body bg is clean (parallax layer handles it) */
body {
  background-image: none !important;
}

/* ── Contact email group ─────────────────────────────────────────── */
.contact-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.contact-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 100%;
}

/* ── Instagram embed ─────────────────────────────────────────────── */
.instagram-embed-wrap {
  margin-top: 2.5rem;
}

.instagram-embed-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.instagram-embed-title a {
  color: var(--accent-dark);
  transition: color 0.18s ease;
}

.instagram-embed-title a:hover {
  color: var(--accent);
}

.instagram-embed-frame {
  border-radius: clamp(10px, 1.2vw, 14px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(49,86,64,0.12);
  background: #fff;
  max-width: 480px;
}

.instagram-embed-frame iframe {
  width: 100%;
  min-height: 600px;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .instagram-embed-frame iframe {
    min-height: 500px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FAILSAFES & FALLBACKS
   ══════════════════════════════════════════════════════════════════ */

/* ── Font fallback — system fonts if Roboto fails to load ────────── */
body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ── Broken image placeholder ────────────────────────────────────── */
img {
  position: relative;
}
img::after {
  content: attr(alt);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ── Instagram embed fallback ────────────────────────────────────── */
.instagram-embed-fallback {
  display: none;
  padding: 2rem;
  text-align: center;
  background: var(--bg-alt);
  border-radius: clamp(10px, 1.2vw, 14px);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  max-width: 480px;
}
.instagram-embed-fallback a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}
.instagram-embed-fallback.visible {
  display: block;
}
.instagram-embed-frame.hidden {
  display: none;
}

/* ── Section load error state ────────────────────────────────────── */
.load-error {
  padding: 2rem;
  background: rgba(255, 80, 80, 0.05);
  border: 1px dashed rgba(255, 80, 80, 0.3);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ── Lightbox image error ────────────────────────────────────────── */
.lightbox-img-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* ── Offline banner ──────────────────────────────────────────────── */
.offline-banner {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-dark);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: fade-up 0.3s ease;
}
.offline-banner.visible {
  display: block;
}

/* ══════════════════════════════════════════════════════════════════
   FAILSAFE STYLES
   ══════════════════════════════════════════════════════════════════ */

/* Broken image — hide the native broken icon, show placeholder bg */
img[data-fallback-applied="true"] {
  display: none !important;
}

/* Ensure gallery wrap always has min height even if image fails */
.gallery-image-wrap {
  min-height: 120px;
}

/* Ensure body is never invisibly white with nothing on it */
body {
  min-height: 100vh;
}

/* Prevent any single element from breaking the layout */
* {
  max-width: 100%;
  word-break: break-word;
}

/* If fonts fail, fall back gracefully */
body, h1, h2, h3 {
  font-family: var(--font-body, system-ui, sans-serif);
}

/* ── Hero showcase meta — more spacing, medium alongside title ───── */
.hero-showcase-meta {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-showcase-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.hero-showcase-sep {
  color: var(--text-muted);
  font-weight: 400;
}

.hero-showcase-medium {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Awards section on homepage ─────────────────────────────────── */
.awards-section {
  max-width: var(--max-width);
}

.awards-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.awards-item {
  background: rgba(82, 175, 121, 0.06);
  border: 1px solid rgba(82, 175, 121, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.awards-item strong {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.awards-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Contact grid — each item in its own card ────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  background: rgba(245, 245, 244, 0.9);
  border: 1px solid rgba(229, 231, 230, 0.85);
  border-radius: clamp(10px, 1.2vw, 14px);
  box-shadow: 0 6px 20px rgba(49, 86, 64, 0.08);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(49, 86, 64, 0.14);
}

.contact-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-card .btn {
  min-width: unset;
  width: 100%;
}

/* ── Resume image preview ────────────────────────────────────────── */
.resume-image-wrap {
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(49, 86, 64, 0.14);
  border: 1px solid var(--border);
  max-width: 720px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.resume-image-wrap:hover {
  box-shadow: 0 16px 48px rgba(49, 86, 64, 0.2);
  transform: translateY(-2px);
}

.resume-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════
   GLOBAL SPACING AUDIT — consistent ~12px (≈1/8in) breathing room
   ══════════════════════════════════════════════════════════════════ */

/* Base section rhythm — generous vertical breathing room */
.section {
  padding: clamp(3rem, 6vw, 5rem) var(--space);
}

/* Hero — extra top clearance from header + good bottom gap */
.hero {
  padding: calc(5rem + var(--header-height)) var(--space) 5rem;
}

/* Hero copy — space between lines of text */
.hero-label {
  margin: 0.75rem 0 0.5rem;
}
.hero-desc {
  margin: 0;
}

/* Hero showcase meta — pushed clearly below the image */
.hero-showcase-meta {
  margin-top: 1.5rem;
  gap: 0.15rem;
}

/* Section titles — more room below before content starts */
.section-title {
  margin: 0 0 2rem;
}

/* Work groups — gap between each gallery section */
.work-group {
  margin-bottom: 3.5rem;
}
.work-group:last-child {
  margin-bottom: 0;
}

/* Work group title pill — space below before gallery cards */
.work-group-title {
  margin-bottom: 1.5rem;
}

/* Gallery cards — more gap between cards */
.gallery {
  gap: 2rem;
  padding-bottom: 1.25rem;
}

/* Gallery card meta — space between image and text */
.gallery-image-wrap {
  margin-bottom: 0.85rem;
}

/* Gallery meta lines */
.gallery-category {
  margin-bottom: 0.2rem;
}

/* About section */
.about-content p {
  margin: 0 0 1.25rem;
}
.about-content p:last-child {
  margin-bottom: 0;
}

/* Resume grid blocks */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0 2rem;
}

.resume-block h3 {
  margin: 0 0 0.75rem;
}

.resume-block li {
  margin-bottom: 0.5rem;
}
.resume-block li:last-child {
  margin-bottom: 0;
}

/* Resume image */
.resume-image-wrap {
  margin-bottom: 2.5rem;
}

/* Awards grid */
.awards-list {
  gap: 1.25rem;
}

.awards-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Instagram section */
.instagram-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.instagram-embed-wrap {
  margin-top: 0;
}

.instagram-embed-title {
  margin: 0 0 1rem;
}

/* Contact grid */
.contact-grid {
  gap: 1.5rem;
}

.contact-card {
  padding: 1.5rem 1.75rem;
  gap: 1rem;
}

.contact-card-label {
  margin-bottom: 0.1rem;
}

/* Contact instagram embed gap */
.instagram-embed-wrap {
  margin-top: 2.5rem;
}

/* Footer spacing */
.site-footer {
  padding: 2rem var(--space);
}

.site-footer p {
  margin: 0 0 0.35rem;
}
.site-footer p:last-child {
  margin-bottom: 0;
}

/* Lightbox caption padding */
.lightbox-caption {
  padding: 1.25rem 1.5rem 1.5rem;
  gap: 0.35rem;
}

/* Nav spacing */
.site-header {
  padding: 1rem var(--space);
}

/* Mobile spacing fixes */
@media (max-width: 768px) {
  .section {
    padding: clamp(2.5rem, 6vw, 4rem) var(--space);
  }

  .hero {
    padding: calc(4rem + var(--header-height)) var(--space) 3rem;
  }

  .work-group {
    margin-bottom: 2.5rem;
  }

  .gallery {
    gap: 1.5rem;
  }

  .resume-grid {
    gap: 1.25rem;
  }

  .contact-grid {
    gap: 1rem;
  }

  .awards-list {
    gap: 1rem;
  }
}

/* ══════════════════════════════════════════════════════════════════
   KEN BURNS — slow pan/zoom on carousel images
   ══════════════════════════════════════════════════════════════════ */

@keyframes kb-zoom-pan-1 {
  0%   { transform: scale(1.08) translate(1%, 1%); }
  100% { transform: scale(1.18) translate(-2%, -1.5%); }
}
@keyframes kb-zoom-pan-2 {
  0%   { transform: scale(1.12) translate(-1.5%, 0.5%); }
  100% { transform: scale(1.06) translate(2%, -2%); }
}
@keyframes kb-zoom-pan-3 {
  0%   { transform: scale(1.06) translate(0%, -1%); }
  100% { transform: scale(1.15) translate(-1.5%, 1.5%); }
}

/* Apply to non-video images inside the hero frame */
.hero-showcase-frame img:not([src$=".gif"]):not([src$=".mp4"]) {
  animation: kb-zoom-pan-1 8s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-showcase-frame img:not([src$=".gif"]):not([src$=".mp4"]).kb-2 {
  animation-name: kb-zoom-pan-2;
}
.hero-showcase-frame img:not([src$=".gif"]):not([src$=".mp4"]).kb-3 {
  animation-name: kb-zoom-pan-3;
}

/* Videos play as-is — no Ken Burns */
.hero-showcase-frame video,
.hero-showcase-frame img[src$=".gif"] {
  animation: none !important;
  transform: none !important;
}

/* ══════════════════════════════════════════════════════════════════
   BUTTON REDESIGN — square, dark green, minimal
   ══════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.65rem 1.4rem !important;
  border-radius: 4px !important;
  border: none !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  min-width: unset !important;
  width: auto !important;
  background-color: var(--accent-dark) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(255,255,255,0.07) !important;
  opacity: 0 !important;
  transition: opacity 0.18s ease !important;
  pointer-events: none !important;
}

.btn:hover,
.btn:focus-visible {
  background-color: #1e3a28 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
  opacity: 1 !important;
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1 !important;
}

.btn:active {
  transform: translateY(0) !important;
  background-color: var(--accent-dark) !important;
}

/* Contact card buttons fill card width */
.contact-card .btn {
  width: 100% !important;
}

/* ── Button blend + single-line fix ─────────────────────────────── */
.btn {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  background-color: rgba(49, 86, 64, 0.08) !important;
  color: var(--accent-dark) !important;
  border: 1.5px solid rgba(49, 86, 64, 0.25) !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em !important;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--accent-dark) !important;
  color: #fff !important;
  border-color: var(--accent-dark) !important;
  transform: translateY(-1px) !important;
}

.btn:active {
  transform: translateY(0) !important;
}

/* ── Contact icons ───────────────────────────────────────────────── */
.contact-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 0.3rem;
  margin-bottom: 1px;
  display: inline-block;
}

.contact-card-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-card-label img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Resume list — keep strong + span on one line ─────────────────── */
.resume-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
}

.resume-list li strong {
  flex-shrink: 0;
}

.resume-list li span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Lightbox prototype button ───────────────────────────────────── */
.lightbox-prototype-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lightbox-prototype-btn:hover {
  background: #1e3a28;
  transform: translateY(-1px);
}

/* ── Contact flat list ───────────────────────────────────────────── */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.contact-row a {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease;
}

.contact-row a:hover {
  color: var(--accent);
}

/* ── About page photo + text layout ─────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 12px 36px rgba(49, 86, 64, 0.18);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 280px;
    aspect-ratio: 1 / 1;
  }
}

/* ══════════════════════════════════════════════════════════════════
   GALLERY CARD HOVER OVERLAY — process description
   ══════════════════════════════════════════════════════════════════ */

.gallery-item {
  position: relative;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(100% - (100% - 1rem - 2.5rem)); /* covers image only */
  height: calc(100% - 3.5rem);
  background: rgba(49, 86, 64, 0.88);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 3;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

/* ── Contact availability status ─────────────────────────────────── */
.contact-availability {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 480px;
  line-height: 1.7;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
