/* ============================================================
   Digital Wheelie — Stylesheet
   ============================================================ */

/* ---- Fonts ---- */
@font-face {
  font-family: 'Arystonal';
  src: url('../fonts/Arystonal.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Blanc Groove';
  src: url('../fonts/BlancGroove-Thin.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Blanc Groove';
  src: url('../fonts/BlancGroove-ThinItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Blanc Groove';
  src: url('../fonts/BlancGroove-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Blanc Groove';
  src: url('../fonts/BlancGroove-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Blanc Groove';
  src: url('../fonts/BlancGroove-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Blanc Groove';
  src: url('../fonts/BlancGroove-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Blanc Groove';
  src: url('../fonts/BlancGroove-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Blanc Groove';
  src: url('../fonts/BlancGroove-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --violet: #6B2FF5;
  --lime: #C6FF00;
  --lime80: 198, 255, 0, 0.8;
  --lime60: 198, 255, 0, 0.6;
  --pink: #FF1B8D;
  --orange: #FF6B00;
  --orange-dark: #B24B00; /* darkened for AA-safe lime text (4.54:1) */
  --ink: #1A1A1A;
  --paper: #FAFAFA;
  --gray: #939598;

  --font-display: 'Arystonal', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Blanc Groove', 'Helvetica Neue', Arial, sans-serif;

  /* Type scale — deliberately more range than a single "safe" size.
     Eyebrows are kickers, never the heading. Arystonal is never small. */
  --fs-eyebrow: 0.8rem;
  --fs-body: clamp(1.05rem, 1.1vw + 0.7rem, 1.2rem);
  --fs-body-lg: clamp(1.25rem, 1.6vw + 0.8rem, 1.6rem);
  --fs-h2: clamp(2.2rem, 4vw + 1rem, 3.6rem);
  --fs-h1: clamp(2.6rem, 6vw + 1rem, 5.5rem);

  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 700ms;

  --lightbox-border: 24px;
  --lightbox-pad: 40px;

  /* Rendered height of .site-nav, kept in sync by main.js so the hero
     can tuck a precise amount behind it. This value is a sane fallback
     for the instant before JS runs. */
  --nav-height: 90px;
}
@media (max-width: 900px) {
  :root { --lightbox-border: 16px; --lightbox-pad: 28px; }
}
@media (max-width: 640px) {
  :root { --lightbox-border: 10px; --lightbox-pad: 18px; }
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-anchor: none; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  color: var(--ink);
  /* background: var(--paper); */
  background-image: url(../assets/bg-box.gif);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Ensure the hidden attribute always wins, regardless of other display rules */
[hidden] { display: none !important; }

/* Respect reduced motion globally */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Focus states (accessibility) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---- Layout helpers ---- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  scroll-margin-top: 84px;
}
#about, #gallery, #sufs, #contact { scroll-margin-top: 84px; }
.about{
  padding-bottom: clamp(2rem, 5vw, 3.75rem);
  border-bottom: 10px solid var(--lime);
}
@media (max-width: 640px) {
  .section, #about, #gallery, #sufs, #contact { scroll-margin-top: 130px; }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.big-line {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: var(--fs-body-lg);
  line-height: 1.3;
}

/* ============================================================
   BLADE — divider between About and Work
   ============================================================ */
.blade-wrap {
  /* padding: 0 var(--gutter); */
  padding-top: 60px;
}
.blade {
  width: 80%;
  max-width: 1400px;
  /* background: var(--lime); */
  /* border: 10px solid var(--orange); */
  /* border-radius: 80px; */
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  /* text-align: center; */

  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.75rem);
  margin: 0 auto;
}
.blade-text {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--orange);
  font-size: clamp(2.2rem, 6vw, 7rem);
  line-height: .9;
  margin: 0;
  rotate: 2deg;
  bottom: -1.25rem;
  position: relative;
  flex: 1 1 auto;
}
.blade-vid {
  flex: 0 0 65%;
  width: 65%;
  position: relative;
  background: var(--lime);
  border: 10px solid var(--orange);
  border-radius: 80px;
  overflow: hidden;
  /* padding: clamp(1rem, 3vw, 2.5rem); */
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../assets/signs-anim.jpg);
  background-position: center;
  background-size: cover;
}
.blade-lottie {
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
}
.blade-vid-toggle {
  position: absolute;
  right: clamp(0.75rem, 3vw, 1.5rem);
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--dur-fast) var(--ease-glide), transform var(--dur-fast) var(--ease-glide);
}
.blade-vid-toggle:hover { background: var(--pink); color: var(--paper); transform: scale(1.06); }
.blade-vid-toggle .icon-play { display: block; }
.blade-vid-toggle .icon-pause { display: none; }
.blade-vid-toggle.is-playing .icon-play { display: none; }
.blade-vid-toggle.is-playing .icon-pause { display: block; }

@media (max-width: 900px) {
  .blade { border-radius: 48px; border-width: 8px; }
}
@media (max-width: 640px) {
  .blade {
    flex-direction: column-reverse;
    border-radius: 28px;
    border-width: 6px;
  }
  .blade-text { bottom: -.25rem; width: 100%; flex: 0 0 auto; text-align: center;}
  .blade-vid { width: 100%; flex: 0 0 auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--lime80));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--violet);
  border-radius: 0 0 60px 60px;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 1rem;
}
.site-nav .logo-link { width: 140px; flex-shrink: 0; }
.site-nav .logo-link svg,
.site-nav .logo-link img { display: block; width: 100%; height: auto; }
.logo-text {
  display: none;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
}
.color-e{
  color: var(--orange);
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0.1rem;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-glide);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .site-nav .wrap { flex-wrap: wrap; gap: 0.35rem; }
  .site-nav .logo-link {
    width: 100%;
    text-align: center;
  }
  .site-nav .logo-link img { display: none; }
  .logo-text {
    display: block;
    font-size: 27px;
    line-height: 1;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-image: url('../assets/bg.jpg');
  background-size: cover;
  background-position: center;
  padding-top: calc(clamp(4rem, 10vw, 7rem) + var(--nav-height));
  padding-bottom: clamp(4rem, 10vw, 7rem);
  text-align: center;
  overflow: hidden;
  max-width: 80%;
  margin: calc(-1 * var(--nav-height)) auto 0;
  border: 10px solid var(--violet);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-top: none;
  position: relative;
  z-index: 1;
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--violet);
  font-size: var(--fs-h1);
  line-height: 1.02;
  margin: 0 auto;
  max-width: 16ch;
  rotate: 2deg;
}
.hero-tagline .accent { color: var(--pink); }

.badge-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 2rem 0 2rem;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.badge {
  width: clamp(52px, 15vw, 300px);
  height: clamp(52px, 15vw, 300px);
  transition: transform var(--dur-fast) var(--ease-glide);
  display: block;
}
.badge img { width: 100%; height: 100%; display: block; }
.badge-item:hover .badge,
.badge-item:focus-within .badge { transform: rotate(-6deg) scale(1.08); }

.badge-label {
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  max-width: 12ch;
  text-align: center;
  line-height: 1.2;
  display: none;
}

.badge-peace .badge, .badge-love .badge { opacity: 0; transform: translateY(10px); }
.badge-pop .badge { opacity: 0; transform: rotate(-35deg) translateY(4px); transform-origin: 30% 85%; }

.hero.loaded .badge-peace .badge { animation: badge-fade var(--dur-slow) var(--ease-glide) 200ms forwards; }
.hero.loaded .badge-love .badge { animation: badge-fade var(--dur-slow) var(--ease-glide) 380ms forwards; }
.hero.loaded .badge-pop .badge { animation: badge-pop-up 900ms var(--ease-glide) 560ms forwards; }

@keyframes badge-fade { to { opacity: 1; transform: translateY(0); } }
@keyframes badge-pop-up {
  0%   { opacity: 0; transform: rotate(-35deg) translateY(4px); }
  60%  { opacity: 1; transform: rotate(8deg) translateY(-6px); }
  100% { opacity: 1; transform: rotate(0deg) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-peace .badge, .badge-love .badge, .badge-pop .badge {
    opacity: 1; transform: none; animation: none !important;
  }
}

.hero-sub {
  max-width: 42ch;
  margin: 0 auto;
  font-size: var(--fs-body-lg);
  color: var(--ink);
}

.scroll-cue {
  margin-top: 3rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-glide), transform var(--dur-slow) var(--ease-glide);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   ABOUT + TAGLINE SIDEBAR
   ============================================================ */
/* .about { background: var(--paper); } */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.5fr 1fr; }
}

.about-main .eyebrow { color: var(--violet); }
.about-copy p {
  font-size: var(--fs-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { font-weight: 700; }

.tagline-sidebar {
  background-image: url('../assets/bg.jpg');
  background-size: cover;
  background-position: center;
  border: 10px solid var(--lime);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
}
@media (min-width: 900px) {
  .tagline-sidebar { position: sticky; top: 110px; }
}
.tagline-sidebar .eyebrow { color: var(--ink); opacity: 0.6; }
.explainer-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.explainer-row:last-of-type { margin-bottom: 0; }
.explainer-icon { display: block; width: 40px; height: 40px; flex-shrink: 0; }
.explainer-icon img { width: 100%; height: 100%; display: block; }
.explainer-text { font-size: 1rem; line-height: 1.45; padding-top: 0.2rem; }
.explainer-hero-line {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.25;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(26, 26, 26, 0.2);
}
.explainer-hero-line em { font-style: italic; font-weight: 700; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery, .blade-wrap { background: var(--paper); }
.gallery .eyebrow { color: var(--pink); }

.filter-bar { margin-bottom: 2.5rem; }
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  width: 100%;
  margin-bottom: 0.25rem;
}
.filter-pill {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--dur-fast) var(--ease-glide), color var(--dur-fast) var(--ease-glide), transform var(--dur-fast) var(--ease-glide);
}
.filter-pill:hover { transform: translateY(-2px); }
.filter-pill[aria-pressed="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--paper);
}

.gallery-status {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.65;
  margin-bottom: 1rem;
}

.content-note {
  display: inline-block;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Project blurb — shown when exactly one project is selected */
.project-info {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2rem;
  max-width: 70ch;
}
.project-info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--lime);
  margin-bottom: 0.6rem;
}
.project-info p {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.92;
  margin-bottom: 0.8rem;
}
.project-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--lime);
  border-bottom: 2px solid var(--lime);
  padding-bottom: 1px;
}
.project-info a:hover { color: var(--pink); border-color: var(--pink); }

.project-group-info {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  max-width: 70ch;
}
.project-group-info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--lime);
  margin-bottom: 0.6rem;
}
.project-group-info p {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.92;
  margin-bottom: 0.8rem;
}
.project-group-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--lime);
  border-bottom: 2px solid var(--lime);
  padding-bottom: 1px;
}
.project-group-info a:hover { color: var(--pink); border-color: var(--pink); }

/* Grouping — when Project is "all", items are grouped under a heading
   per project rather than shown as one mixed grid. */
.gallery-groups-viewport {
  overflow: hidden;
  transition: height var(--dur-slow) var(--ease-glide);
}
@media (prefers-reduced-motion: reduce) {
  .gallery-groups-viewport { transition: none; }
}
.project-group {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.project-group:last-child { margin-bottom: 0; }
.project-group-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--violet);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(26,26,26,0.12);
}

/* Uniform grid — every card is the same size, so alignment and centering
   are trivial and FLIP animation has simple, predictable moves to make.
   Flexbox + wrap + justify-content:center handles the "incomplete last
   row stays centered" request naturally. */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  overflow-anchor: none;
}
.gallery-item {
  width: 260px;
  will-change: transform, opacity;
}
.gallery-card {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  text-align: left;
  position: relative;
}
.gallery-thumb-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 5px solid var(--ink);
}
.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-glide);
  display: block;
}
.gallery-card:hover .gallery-thumb-wrap img,
.gallery-card:focus-visible .gallery-thumb-wrap img {
  transform: scale(1.06);
}

/* Overlay labels directly on the thumbnail */
.thumb-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}
.thumb-type-badge--logo { background: var(--violet); color: var(--paper); }
.thumb-type-badge--website { background: var(--pink); color: var(--paper); }
.thumb-type-badge--yard-sign { background: var(--orange); color: var(--ink); }
.thumb-type-badge--graphics { background: var(--lime); color: var(--ink); }
.thumb-type-badge--clothing {
  background: var(--ink);
  color: var(--lime);
  /* border: 1px solid var(--lime); */
}
.thumb-project-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 0.75rem 0.7rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--paper);
  background: rgba(26, 26, 26, 0.75);
  border: none;
  z-index: 2;
  transition: background-color var(--dur-fast) var(--ease-glide);
}
.thumb-project-name:hover,
.thumb-project-name:focus-visible {
  background: rgba(26, 26, 26, 1);
  text-decoration: underline;
}

/* Entering / leaving states for filter transitions */
.gallery-item.entering { opacity: 0; transform: scale(0.92); }
.gallery-item.leaving {
  opacity: 0;
  transform: scale(0.92);
  position: fixed;
  pointer-events: none;
}
.gallery-item.animating {
  transition: transform var(--dur-med) var(--ease-glide), opacity var(--dur-med) var(--ease-glide);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-glide), visibility 0s linear var(--dur-med);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-med) var(--ease-glide), visibility 0s;
}
.lightbox-content {
  max-width: 80vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border: var(--lightbox-border) solid rgba(26, 26, 26, 0.96);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transform: scale(0.94);
  transition: transform var(--dur-med) var(--ease-glide);
}
.lightbox.open .lightbox-content { transform: scale(1); }
.lightbox-content img {
  max-width: 100%;
  max-height: calc(85vh - 220px);
  width: auto;
  height: auto;
  /* padding: var(--lightbox-pad); */
  box-sizing: border-box;
  display: block;
}
.lightbox-caption {
  width: 100%;
  padding: var(--lightbox-pad) 0;
  background: rgba(26, 26, 26, 0.96);
  color: var(--paper);
  text-align: center;
  margin-top: 0;
}
.lightbox-caption .cap-label { font-weight: 700; font-size: 1.05rem; }
.lightbox-caption .cap-project { opacity: 0.7; font-size: 0.9rem; font-style: italic; }
.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: var(--pink); color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-content { transition: none; }
}

/* ============================================================
   FEATURED: STAND UP FOR SCIENCE
   ============================================================ */
.featured-sufs {
  background: var(--violet);
  color: var(--paper);
  padding-top: 0;
  border-bottom: 10px solid var(--orange);
}
.featured-sufs .eyebrow { color: var(--lime); }
.featured-sufs .section-heading { color: var(--paper); }
.sufs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
.fistBorder{
  height: 125px;
  background-image: url('../assets/icons/fists.gif');
  background-repeat: repeat-x;
  background-size: contain;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 900px) {
  .fistBorder { height: 65px; }
}
@media (min-width: 800px) {
  .sufs-grid { grid-template-columns: 1.2fr 1fr; }
}
.sufs-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.sufs-image-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--paper);
}
.sufs-image-wrap img { width: 100%; height: auto; display: block; }
.sufs-image-caption {
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.7;
  margin-top: 0.4rem;
}
.sufs-copy p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.92;
}
.sufs-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-weight: 700;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
  color: var(--lime);
  transition: gap var(--dur-fast) var(--ease-glide);
}
.sufs-link:hover, .sufs-link:focus-visible { gap: 0.85rem; }

/* T-shirt graphic, pulled out of .sufs-images and centered under the
   whole .sufs-grid (both columns), rather than stacked in the images
   column with the poster. */
.sufs-shirt-feature {
  max-width: 575px;
  margin: 2.5rem auto 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact.section{
  padding-bottom: 0;
}

.contact .wrap {
  background-image: url('../assets/bg.jpg');
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  border: 10px solid var(--violet);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-width: 90%;
}
.contact .eyebrow { color: var(--violet); }
.contact-heading-center { text-align: center; display: block; }
.contact-card-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.contact-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* border: 2px solid var(--ink); */
}
.contact-card-header {
  background: var(--violet);
  color: var(--paper);
  padding: 1.5rem clamp(1.5rem, 4vw, 2.5rem);
}
.contact-card-header .card-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.contact-card-header .card-note {
  font-size: 1.1rem;
  /* opacity: 0.85; */
  margin-top: 0.4rem;
  font-style: italic;
}
.contact-card-body {
  background: var(--orange);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.field label .label-note { font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--violet);
  background: var(--paper);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(107, 47, 245, 0.45); }

/* honeypot field — visually hidden, but not display:none, so bots that
   auto-fill everything still populate it while real users never see it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2rem);
  bottom: clamp(-1.4rem, -2vw, -1rem);
  background: var(--pink);
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.95rem 2rem;
  font-weight: 900;
  font-size: 1.05rem;
  transition: transform var(--dur-fast) var(--ease-glide), background var(--dur-fast) var(--ease-glide);
  box-shadow: 0 6px 0 rgba(26,26,26,0.15);
}
.btn-submit:hover { transform: translateY(-2px) scale(1.03); background: var(--violet); }
.btn-submit:active { transform: translateY(1px) scale(0.98); }

.form-status {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
  opacity: 0.85;
}
.form-status.error { color: var(--pink); opacity: 1; font-weight: 700; font-style: normal; }

.form-note {
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
  opacity: 0.6;
  font-size: 0.9rem;
}
.footer-logo {
  max-width: 640px;
  width: 100%;
  margin: 0 auto 2rem;
}
.footer-logo img { width: 100%; height: auto; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 2rem var(--gutter);
  text-align: center;
  background-color: rgba(var(--lime60));
  border-top: 10px solid var(--violet);
  border-radius: 60px 60px 0 0;
}
@media (max-width: 900px) {
  .site-footer { border-radius: 0; }
}
.footer-pill {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}
.footer-pill a { text-decoration: underline; text-underline-offset: 2px; }
.footer-pill a:hover { color: var(--pink); }

/* Footer badge row — same badges as the hero, capped smaller, plus a
   4th "box" holding the copyright blurb, styled like blade-vid. */
.badge-row-footer .badge-item .badge {
  /* Hero-scoped entrance animation (.hero.loaded ...) never reaches
     these since the footer isn't inside .hero — force them visible. */
  opacity: 1;
  transform: none;
}
.badge-row-footer .badge {
  width: clamp(52px, 15vw, 125px);
  height: clamp(52px, 15vw, 125px);
}
.badge-copyright-box {
  background: var(--lime);
  border: clamp(2px, 1vw, 9px) solid var(--ink);
  border-radius: clamp(2px, 1.5vw, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: clamp(0.35rem, 1.5vw, 0.65rem);
  font-weight: 700;
  font-size: clamp(0.65rem, 1.6vw, 0.9rem);
  line-height: 1.15;
  color: var(--ink);
}
.badge-copyright-box a { text-decoration: underline; text-underline-offset: 2px; }
.badge-copyright-box a:hover { color: var(--pink); }