/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #9db5be;
  --blue-lt: #c8d8dd;
  --blue-bg: #dce8ec;
  --tan:     #9e8f7a;
  --tan-lt:  #b5a694;
  --cream:   #f5f2ec;
  --cream-dk:#ede8e0;
  --dark:    #2a2421;
  --mid:     #5c524a;
  --white:   #fdfcfb;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(42,36,33,0.10);
  --shadow-lg: 0 8px 40px rgba(42,36,33,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

.body-serif {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--mid);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,252,251,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(157,181,190,0.2);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 20px rgba(42,36,33,0.08); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--tan);
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--tan); }

.nav-cta {
  background: var(--tan) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 100px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--tan-lt) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(157,181,190,0.25);
  padding: 1.5rem 2rem;
  z-index: 99;
  transform: translateY(-120%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 8px 24px rgba(42,36,33,0.08);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.mobile-menu a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ===== SECTION BASE ===== */
section { padding: 100px 0; }
section:first-of-type { padding-top: 0; }
.section-alt { background: var(--blue-bg); }

/* ===== BINDER CLIP & LABELS ===== */
.clip {
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Section label: clip in normal flow, neg margin makes it overlap tag top */
.section-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}
.clip-label {
  width: 30px;
  margin-left: 12px;
  margin-bottom: -11px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

/* Centered section headers */
.section-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
}
.clip-center {
  width: 34px;
  margin-bottom: -12px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

.label-tag {
  display: inline-block;
  background: var(--cream-dk);
  border: 1.5px solid rgba(158,143,122,0.45);
  padding: 0.45rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-bg);
  position: relative;
  padding: 80px 2rem 60px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.folder-wrap {
  position: relative;
  width: min(680px, 90vw);
}

.folder-img {
  width: 100%;
  display: block;
  filter: drop-shadow(var(--shadow-lg));
}

.folder-text {
  position: absolute;
  top: 48%;
  left: 53%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.folder-text h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.12em;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.folder-tag {
  display: inline-block;
  border: 2px solid var(--dark);
  padding: 0.3rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark);
}

.folder-photo-wrap {
  position: absolute;
  bottom: 5%;
  left: -5%;
  width: 28%;
}

.folder-photo {
  width: 100%;
  border-radius: 6px;
  border: 4px solid white;
  box-shadow: 0 6px 20px rgba(42,36,33,0.25);
  transform: rotate(-3deg);
  display: block;
}

.clip-hero {
  position: absolute;
  top: -16%;
  left: 10%;
  width: 30%;
  z-index: 2;
  transform: rotate(-4deg);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--tan);
  animation: bounce 2s infinite;
}
.scroll-hint svg { width: 32px; height: 32px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SPLIT LAYOUT ===== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }

.split-text h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

.split-text .body-serif { margin-top: 0.8rem; }

.split-image { display: flex; justify-content: center; }

.photo-rounded {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* ===== EXPERIENCE ===== */
#experience { background: var(--white); }
#experience .container { max-width: 1000px; }

.exp-card {
  background: var(--white);
  border: 1.5px solid rgba(157,181,190,0.3);
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.exp-card:hover { box-shadow: var(--shadow-lg); }
.exp-card.open { border-color: var(--blue); }

.exp-card-header { cursor: pointer; padding: 0 2rem; height: 96px; display: flex; align-items: center; }
.exp-card-top { display: flex; align-items: center; gap: 1.5rem; width: 100%; }

.exp-meta { flex: 1; }
.exp-date {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.3rem;
}
.exp-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.exp-tags {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.exp-company { font-weight: 500; color: var(--tan); }
.exp-company-sep { margin-right: 0.4em; color: var(--tan-lt); }
.exp-logo-wrap { flex-shrink: 0; }
.exp-logo { height: 52px; max-width: 150px; object-fit: contain; }
.exp-logo-round { height: 72px; width: 72px; object-fit: contain; border-radius: 50%; }

.exp-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tan-lt);
  flex-shrink: 0;
  transition: transform 0.3s, color 0.2s;
  padding: 4px;
}
.exp-toggle svg { width: 22px; height: 22px; }
.exp-card.open .exp-toggle { transform: rotate(180deg); color: var(--tan); }

.exp-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
}
.exp-card.open .exp-card-body { max-height: 600px; }

.exp-body-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 0 2rem 2rem;
  border-top: 1px solid rgba(157,181,190,0.2);
  padding-top: 1.6rem;
}

.exp-photo-col { display: flex; flex-direction: column; gap: 0.75rem; }
.exp-photo {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: 0 3px 12px rgba(42,36,33,0.12);
}
.exp-photo-two .exp-photo { aspect-ratio: 1/1; }

/* Chi Omega: scrollable carousel strip — shows ~2 photos, third peeks */
.exp-body-inner.exp-body-wide { grid-template-columns: 340px 1fr; }
.exp-body-wide .exp-photo-col {
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.5rem;
}
.exp-body-wide .exp-photo-col::-webkit-scrollbar { display: none; }
.exp-body-wide .exp-photo-col { cursor: grab; }
.exp-body-wide .exp-photo-col.dragging { cursor: grabbing; }
.exp-body-wide .exp-photo { flex: 0 0 44%; width: 44%; aspect-ratio: 3/4; -webkit-user-drag: none; user-select: none; }

/* Pickle: video + photo side by side at matching height */
.exp-body-inner.exp-body-pair { grid-template-columns: auto 1fr; }
.exp-media-pair { flex-direction: row; gap: 0.5rem; height: 320px; }
.exp-media-pair .exp-video,
.exp-media-pair .exp-photo { height: 100%; width: auto; max-width: none; margin: 0; }
.exp-media-pair .exp-video { aspect-ratio: 9/16; }
.exp-media-pair .exp-photo { aspect-ratio: 3/4; object-position: 60% center; }

/* DMI: landscape collage — show more of the image horizontally */
.exp-body-inner.exp-body-landscape { grid-template-columns: 1fr 1fr; }
.exp-body-landscape .exp-photo { aspect-ratio: 4/3; }

.exp-desc-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.2rem;
}
.exp-desc-col li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--mid);
  padding-left: 1.2rem;
  position: relative;
}
.exp-desc-col li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--tan);
  font-size: 1.4rem;
  line-height: 1.4;
}

/* ===== CREATIVE WORK ===== */
.creative-block {
  margin-bottom: 5rem;
}
.creative-block:last-child { margin-bottom: 0; }

.creative-block-header {
  margin-bottom: 2rem;
}
.creative-block-header h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.creative-tags {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.creative-note {
  margin-top: 0.6rem;
  font-size: 1.05rem;
}

/* Compare slider */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.compare-slider {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  box-shadow: var(--shadow-lg);
}

.compare-after,
.compare-before {
  position: absolute;
  inset: 0;
}

.compare-after img,
.compare-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-before img {
  clip-path: inset(0 50% 0 0);
}

.compare-divider {
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 3px;
  background: rgba(255,255,255,0.9);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239e8f7a' stroke-width='2.5'%3E%3Cpath d='M9 18l-5-6 5-6M15 6l5 6-5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.compare-label {
  position: absolute;
  top: 0.75rem;
  padding: 0.28rem 0.8rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  border-radius: 4px;
  z-index: 4;
  background: rgba(42,36,33,0.42);
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.compare-label-before { left: 0.75rem; }
.compare-label-after { right: 0.75rem; }

.compare-slider-exp {
  aspect-ratio: 3/4;
  max-height: 300px;
}

/* Gallery grids */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
}
.gallery-three {
  grid-template-columns: repeat(3, 1fr);
}

/* Scattered collage layout */
.scattered-collage {
  position: relative;
  height: 600px;
  margin: 1.5rem 0 2rem;
  overflow: visible;
}

.sc-item {
  position: absolute;
  width: 40%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 28px rgba(42,36,33,0.26));
  transition: filter 0.3s;
}
.sc-item:hover { filter: drop-shadow(0 14px 36px rgba(42,36,33,0.4)); }

.sc-video-wrap {
  position: absolute;
  width: 36%;
  aspect-ratio: 3/4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 44px rgba(42,36,33,0.28);
  z-index: 2;
}
.sc-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }

.sc-1 { top: 0;       left: 0;   transform: rotate(-7deg); z-index: 1; }
.sc-2 { top: -7%; right: -2%; width: 45%; transform: rotate(5deg);  z-index: 3; }
.sc-3 { bottom: -14%; left: 0;   transform: rotate(6deg);  z-index: 3; }
.sc-4 { bottom: -8%;  right: 3%; transform: rotate(-5deg); z-index: 4; }

/* Exp card video */
.exp-video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(42,36,33,0.12);
  aspect-ratio: 9/16;
  object-fit: cover;
  background: #000;
  display: block;
}

/* ===== SKILLS ===== */
#skills { background: var(--white); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.skill-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
}
.skill-card h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.9rem;
}
.skill-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.skill-card li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--mid);
  padding-left: 1.1rem;
  position: relative;
}
.skill-card li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.6em;
  width: 0.3em;
  height: 0.3em;
  border-radius: 50%;
  background: var(--tan);
}

/* ===== CONTACT ===== */
#contact {
  background: var(--cream-dk);
  text-align: center;
  padding: 120px 2rem;
  position: relative;
}

.contact-headline {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 2rem;
}

.contact-name-tag {
  display: inline-block;
  background: var(--blue-lt);
  border-left: 3px solid var(--tan);
  padding: 0.6rem 1.8rem;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--dark);
  margin-bottom: 3.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--mid);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s, transform 0.2s;
}
.contact-item:hover { color: var(--tan); transform: translateY(-2px); }
.contact-item svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(42,36,33,0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem;
}

/* ===== SCROLL FADE ===== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Ensure above-fold content is always visible */
#hero .folder-wrap,
#about .split-layout { opacity: 1 !important; transform: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .exp-body-inner { grid-template-columns: 1fr; }
  .exp-photo-col { flex-direction: row; }
  .exp-photo { aspect-ratio: 1/1; }
  .scattered-collage { height: 460px; }
  .sc-item { width: 44%; }
  .sc-video-wrap { width: 40%; }
  .sc-2 { top: 5%; }
  .sc-4 { bottom: -22%; }
  /* Accordion body: single-column content needs more room */
  .exp-card.open .exp-card-body { max-height: 1200px; }
  /* SetMeUp slider: full-width in single column, no height cap */
  .compare-slider-exp { max-height: none; width: 100%; }
  /* Revert wide/landscape variants to single column */
  .exp-body-inner.exp-body-wide,
  .exp-body-inner.exp-body-landscape,
  .exp-body-inner.exp-body-pair { grid-template-columns: 1fr; }
  .exp-media-pair { justify-content: center; height: 280px; }
  /* Chi Omega: swipeable carousel on mobile */
  .exp-photo-two {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-direction: row;
  }
  .exp-photo-two::-webkit-scrollbar { display: none; }
  .exp-photo-two .exp-photo {
    flex: 0 0 80%;
    scroll-snap-align: start;
    aspect-ratio: 3/4;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  section { padding: 70px 0; }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .split-layout.reverse { direction: ltr; }

  .folder-text h1 { font-size: clamp(1.4rem, 7vw, 2.4rem); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-three { grid-template-columns: repeat(3, 1fr); }
  .contact-links { gap: 1.8rem; }
  .scattered-collage { height: 360px; }
  .sc-item { width: 46%; }
  .sc-video-wrap { width: 42%; }
  .sc-2 { top: 5%; }
  .sc-4 { bottom: -22%; }

  /* Accordion header: auto height so tags don't get clipped */
  .exp-card-header { height: auto; min-height: 72px; padding: 0.9rem 1.2rem; }
  .exp-card-top { gap: 0.8rem; }
  /* Tags take too much room in a narrow header — info is still in the body */
  .exp-tags { display: none; }
  /* Company drops to its own line instead of wrapping mid-title */
  .exp-company { display: block; font-size: 0.85em; margin-top: 0.15rem; }
  .exp-company-sep { display: none; }
  /* Pickle video: cap width so it doesn't dominate the card */
  .exp-video { max-width: 180px; margin: 0 auto; display: block; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .exp-media-pair { height: 230px; }
  section { padding: 50px 0; }
  #contact { padding: 60px 1rem; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid.gallery-three {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .gallery-grid.gallery-three::-webkit-scrollbar { display: none; }
  .gallery-grid.gallery-three .gallery-img {
    flex: 0 0 75%;
    width: 75%;
    scroll-snap-align: start;
  }
  .skills-grid { grid-template-columns: 1fr; }

  /* Header: auto height inherited from 768px rule, just tweak padding */
  .exp-card-header { padding: 0.75rem 1rem; }
  /* Shrink logos slightly so meta text has more room */
  .exp-logo { height: 42px; max-width: 100px; }
  .exp-logo-round { height: 56px; width: 56px; }

  .exp-body-inner { padding: 1rem 1rem 1.5rem; }
  .scattered-collage { height: 280px; margin-bottom: 4rem; }
  .sc-item { width: 50%; }
  .sc-video-wrap { width: 46%; }
  .sc-2 { top: 5%; }
  .sc-4 { bottom: -22%; }
}
