/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
  --blue:          #0104AD;
  --blue-glow:     rgba(1, 4, 173, 0.40);
  --black:         #111111;
  --grey-divider:  #bbbbbb;
  --grey-filler:   #e4e4e4;
  --grey-footer:   #e0e0e0;
  --grey-caption:  #f0f0f0;
  --white:         #ffffff;

  --font:          'Rubik', sans-serif;
  --fw-light:      300;
  --fw-regular:    400;

  --fs-logo-desktop: clamp(2.8rem, 4vw, 3.6rem);
  --fs-logo-mobile:  2rem;
  --fs-heading:    2rem;      /* 32px */
  --fs-body:       1.25rem;   /* 20px */
  --fs-divider:    0.34rem;   /* ~5-6px */
  --fs-footer:     0.625rem;  /* 10px */
  --fs-card-title: 1rem;
  --fs-card-desc:  0.875rem;

  --nav-width:     160px;
  --col-gap:       56px;   /* between the two project columns */
  --card-gap:      40px;   /* between cards within a column */
  --side-pad:      56px;   /* symmetric left + right padding on desktop content */
  --section-pad:   56px;
  --mobile-bp:     768px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* No page-level scroll snap on mobile — normal scrolling */


body {
  font-family: var(--font);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

ul { list-style: none; }

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

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

/* ═══════════════════════════════════════════════════════════════
   DESKTOP SIDEBAR NAV
═══════════════════════════════════════════════════════════════ */
.nav-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 20px 48px 28px;
  z-index: 100;
  background: var(--white);
}

.nav-sidebar .nav-logo {
  font-size: var(--fs-logo-desktop);
  font-weight: var(--fw-regular);
  line-height: 1.05;
  color: var(--blue);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  transition: opacity 0.2s ease;
}
.nav-sidebar .nav-logo:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-links .nav-link {
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  color: var(--black);
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: transform 0.18s ease;
}

/* Underline bar — animated on active */
.nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links .nav-link:hover { transform: scale(1.04); }
.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE TOP NAV
═══════════════════════════════════════════════════════════════ */
.nav-mobile {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  padding: 16px 20px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav-mobile.scrolled {
  border-color: #e8e8e8;
}

.nav-mobile .nav-logo {
  font-size: var(--fs-logo-mobile);
  font-weight: var(--fw-regular);
  color: var(--blue);
  line-height: 1;
  white-space: nowrap;
}

.nav-links-mobile {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.nav-links-mobile .nav-link {
  font-size: 1rem;
  font-weight: var(--fw-light);
  color: var(--black);
  position: relative;
  padding-bottom: 2px;
}

.nav-links-mobile .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links-mobile .nav-link.active::after {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--nav-width);
  padding-left: var(--side-pad);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION DIVIDER (>+& repeating)
═══════════════════════════════════════════════════════════════ */
.section-divider {
  /* Match the projects-grid width exactly: full content minus right padding */
  width: calc(100% - var(--side-pad));
  font-size: var(--fs-divider);
  letter-spacing: -0.02em;
  color: var(--grey-divider);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  padding: 0;
  user-select: none;
  /* generated via JS to fill width */
}

/* ═══════════════════════════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════════════════════════ */
.section {
  padding: var(--section-pad) 0;
}

.section-heading {
  font-size: var(--fs-heading);
  font-weight: var(--fw-light);
  margin-bottom: 24px;
  line-height: 1.15;
}

/* ═══════════════════════════════════════════════════════════════
   §1 PROJECTS — DESKTOP TWO-COLUMN
═══════════════════════════════════════════════════════════════ */
.section-projects {
  padding-top: var(--section-pad);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--col-gap);
  row-gap: 0;               /* columns handle their own card gaps */
  align-items: start;
  padding-right: var(--side-pad);
}

.projects-col {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  position: relative;
}

/* ─── Project Card ─── */
.project-card {
  position: relative;
  background: var(--grey-caption);
  cursor: pointer;
  overflow: hidden;
  outline: none;
  /* click press-in */
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.18s ease;
}

.project-card:focus-visible {
  box-shadow: 0 0 0 3px var(--blue);
}

.project-card:active {
  transform: scale(0.97);
}

/* Media wrapper — the image/video fills this */
.card-media-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark overlay on hover */
.card-media-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

/* Caption bar */
.card-caption {
  padding: 12px 14px 14px;
  background: var(--grey-caption);
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-title {
  display: block;
  font-size: var(--fs-card-title);
  font-weight: var(--fw-regular);
  margin-bottom: 4px;
  color: var(--black);
}

.card-desc {
  display: block;
  font-size: var(--fs-card-desc);
  font-weight: var(--fw-light);
  color: #444;
  line-height: 1.4;
}

/* HOVER — caption slides up, image scales, overlay darkens */
@media (hover: hover) {
  .project-card:hover .card-media {
    transform: scale(1.03);
  }
  .project-card:hover .card-media-wrap::after {
    background: rgba(0, 0, 0, 0.07);
  }
  .project-card:hover .card-caption {
    transform: translateY(-8px);
  }
}

/* ─── Ripple effect ─── */
.project-card {
  --ripple-x: 50%;
  --ripple-y: 50%;
}

@keyframes ripple-expand {
  from {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4);
  }
}

.ripple-origin {
  display: none; /* created dynamically in JS */
}

.ripple-dot {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: ripple-expand 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 10;
}

/* ─── Decorative >+& column filler — hidden ─── */
.col-filler {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   §2 ABOUT
═══════════════════════════════════════════════════════════════ */
.section-about {
  padding-right: var(--side-pad);
}

.about-body {
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: 1.65;
  /* Width fills the full two-column area (no arbitrary ch cap on desktop) */
  width: 100%;
  max-width: 100%;
  margin-bottom: 48px;
  color: var(--black);
}

/* Logos row */
.logos-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  transition: filter 0.25s ease, transform 0.2s ease;
}

.logo-link:hover {
  filter: drop-shadow(0 0 8px var(--blue-glow));
  transform: translateY(-1px);
}

.org-logo {
  /* Constrain both dimensions so wide/horizontal logos don't overwhelm */
  height: 30px;
  max-height: 30px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.25s ease;
}

.logo-link:hover .org-logo {
  filter: grayscale(0);
}

/* ═══════════════════════════════════════════════════════════════
   §3 CONTACT
═══════════════════════════════════════════════════════════════ */
.section-contact {
  padding-right: var(--side-pad);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  position: relative;
  padding-bottom: 2px;
  transition: transform 0.18s ease;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 36px; /* start after icon */
  right: 0;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-link:hover::after { transform: scaleX(1); }
.contact-link:hover { transform: translateX(4px); }

.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--grey-footer);
  /* Right padding matches grid right edge; width is auto (= content area of main-content) */
  padding: 28px var(--side-pad) 44px;
  text-align: center;
}

.site-footer p {
  font-size: var(--fs-footer);
  font-weight: var(--fw-light);
  color: #666;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SCROLL-NEXT BUTTON
═══════════════════════════════════════════════════════════════ */
.scroll-next-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--blue);
  padding: 8px 16px;
  transition: opacity 0.3s ease, transform 0.2s ease;
  line-height: 1;
}

.scroll-next-btn:hover {
  transform: translateX(-50%) translateY(-3px);
}

.scroll-next-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE BREAKPOINT (≤ 768px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Show mobile nav, hide sidebar; scroll-next-btn hidden (no snap scroll) */
  .nav-sidebar { display: none; }
  .nav-mobile  { display: flex; }
  .scroll-next-btn { display: none; }

  /* Remove sidebar offset */
  .main-content {
    margin-left: 0;
    padding-left: 0;
  }

  /* ─── Mobile Projects: normal scroll, single column ─── */
  .section-projects {
    padding: 0 0 40px; /* bottom breathing room before divider */
  }

  .projects-grid {
    display: flex;
    flex-direction: column;
    align-items: center;       /* centre cards in the column */
    padding: 16px 20px 0;      /* horizontal breathing room */
    gap: 32px;                 /* vertical breathing room between cards */
  }

  .projects-col {
    display: contents; /* flatten both cols into a single flow */
  }

  /* Re-order cards for mobile: Unkempt, Felt3D, Pet Rock, Resonance */
  #card-unkempt  { order: 1; }
  #card-felt3d   { order: 2; }
  #card-pet-rock { order: 3; }
  #card-resonance{ order: 4; }

  /* Remove all scroll-snap behaviour on mobile cards */
  .project-card {
    scroll-snap-align: unset;
    scroll-snap-stop: unset;
    scroll-margin-top: unset;
    width: 100%; /* fill the padded column */
  }

  /* Card images: show at natural height (no vertical crop). Videos keep max-height. */
  img.card-media {
    max-height: none;
    object-fit: contain;
    background: var(--grey-caption);
  }

  video.card-media {
    width: 100%;
    max-height: 55svh;
    object-fit: cover;
  }

  /* About & Contact sections re-padded for mobile */
  .section-about,
  .section-contact {
    padding: 40px 20px;
  }

  .about-body { max-width: 100%; }

  /* Logos grid on mobile: 3 columns */
  .logos-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
    justify-items: center;
  }

  .org-logo {
    height: 24px;
    max-width: 90px;
  }

  /* Section dividers on mobile: full width with matching inset */
  .section-divider {
    width: calc(100% - 40px);
    margin-left: 20px;
  }

  /* Footer on mobile: inset to match content */
  .site-footer {
    padding: 24px 20px 40px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — ensure sidebar sections are accessible via offset
═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  /* Sections need scroll-margin so anchors land below any sticky element */
  #projects, #about, #contact {
    scroll-margin-top: 0px;
  }
}

@media (max-width: 768px) {
  #projects, #about, #contact {
    scroll-margin-top: 64px; /* height of mobile nav */
  }
}

/* ═══════════════════════════════════════════════════════════════
   TABLET — single centred column (769px – 1100px)
   At this width the sidebar is still visible but two project
   columns become too narrow to look good, so we collapse to one.
═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: 1fr; /* single column */
    max-width: 560px;           /* comfortable reading width */
    margin-left: auto;
    margin-right: auto;
    padding-right: 0;
  }

  /* Both columns now sit in a single flow */
  .projects-col {
    display: contents;
  }

  /* Cards fill their single column and are centred by the grid's auto margins */
  .project-card {
    width: 100%;
  }

  /* Divider and footer span the same width as the single-col grid */
  .section-divider {
    max-width: calc(560px + var(--side-pad));
    width: 100%;
  }

  .site-footer {
    max-width: calc(560px + var(--side-pad));
    width: 100%;
  }

  /* About and contact also constrained */
  .section-about,
  .section-contact {
    max-width: calc(560px + var(--side-pad));
  }
}

/* ═══════════════════════════════════════════════════════════════
   PROJECT PAGE — NAV SUB-LINK
   Indented, always-underlined link for the current project.
═══════════════════════════════════════════════════════════════ */
.nav-sublist {
  list-style: none;
  padding: 0;
  margin-top: 4px;
}

.nav-sublink {
  font-size: 0.9rem;    /* smaller than body to indicate hierarchy */
  font-weight: var(--fw-light);
  color: var(--black);
  padding-left: 24px;   /* deeper indent beneath parent "projects" link */
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: transform 0.18s ease;
}

/* Underline: always shown for current page; shown on hover for others */
.nav-sublink::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  width: calc(100% - 24px);
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-sublink[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-sublink:hover::after {
  transform: scaleX(1);
}

.nav-sublink:hover { transform: scale(1.04); }

/* ═══════════════════════════════════════════════════════════════
   PROJECT PAGE — CONTENT GRID
   Reuses the same two-column geometry as the homepage project grid.
═══════════════════════════════════════════════════════════════ */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--col-gap);
  align-items: start;
  padding-right: var(--side-pad);
}

/* ─── Intro (title + hero image) ─── */
.proj-intro {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.proj-title {
  font-size: var(--fs-heading);
  font-weight: var(--fw-light);
  line-height: 1.15;
  margin-bottom: 12px;
}

.proj-descriptor {
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  color: #777;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ─── Content sections ─── */
.proj-section {
  padding-top: var(--section-pad);
}

.proj-heading {
  font-size: var(--fs-heading);
  font-weight: var(--fw-light);
  line-height: 1.15;
  margin-bottom: 24px;
}

/* ─── Body text: block justification ─── */
.proj-body {
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: 1.65;
  color: var(--black);
  text-align: justify;
  hyphens: auto;
}

.proj-body + .proj-body {
  margin-top: 16px;
}

/* ─── Inline link within body text ─── */
.proj-link {
  color: var(--blue);
  position: relative;
  display: inline;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}

.proj-link:hover { opacity: 0.7; }

/* ─── Media ─── */
.proj-media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

video.proj-media {
  object-fit: cover;
}

.proj-caption {
  font-size: 0.75rem;
  font-weight: var(--fw-light);
  color: #999;
  line-height: 1.45;
  margin-top: 8px;
  text-align: left;   /* captions are always left-aligned */
}

/* When a media column holds multiple stacked items */
.proj-col-media > * + * {
  margin-top: 16px;
}

/* ─── Hero: column-width on desktop (matching proj-full), full-bleed on mobile ─── */
.proj-hero {
  position: relative;
  padding-right: var(--side-pad);   /* right edge aligns with column right */
  /* no negative margins: main-content padding-left already places left edge at column start */
}

.proj-hero img {
  width: 100%;
  height: auto;        /* no cropping — show full natural aspect ratio */
  display: block;
}

/* Scroll-down chevron arrow hovering over hero */
.proj-scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--blue);
  padding: 8px 20px;
  animation: arrow-bounce 1.8s ease-in-out infinite;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj-scroll-arrow svg {
  display: block;
  width: 44px;
  height: 28px;
}

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

/* ─── Full-width text block spanning both columns ─── */
.proj-intro-text {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  padding-right: var(--side-pad);
}

/* Full-width element spanning both columns (images etc.), with column right-pad */
.proj-full {
  padding-right: var(--side-pad);
  padding-top: var(--section-pad);
}

.proj-full img,
.proj-full video {
  width: 100%;
  display: block;
}

/* Full-width text sections (headings + body spanning both columns) */
.proj-full-text {
  padding-right: var(--side-pad);
  padding-top: var(--section-pad);
}

/* ─── Power Felting: 2-col × 2-row grid so text aligns with image top ───
   Row 1: heading (left) | empty (right)
   Row 2: image  (left) | text + video (right)
   This makes right-col content start at the same y-level as the image.
———————————————————————————————————————————————— */
.proj-power-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  column-gap: var(--col-gap);
  padding-right: var(--side-pad);
  padding-top: var(--section-pad);
}

.proj-power-heading {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 24px;
}

.proj-power-img {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: auto;
  display: block;
  align-self: start;
}

.proj-power-content {
  grid-column: 2;
  grid-row: 2;    /* starts level with the image, not the heading */
}

.proj-power-content > video.proj-media {
  margin-top: 24px;
}

/* ─── Felt3D: reduce gap between section heading and its following media block ─── */
/* Add class proj-section-heading to a proj-full-text heading that immediately precedes a proj-full */
.proj-section-heading + .proj-full {
  padding-top: 24px;
}

/* ─── Video / YouTube hero spanning both columns (with sound, uses controls) ─── */
.proj-video-hero {
  padding-right: var(--side-pad);
  padding-top: var(--section-pad);
}

.proj-video-hero iframe,
.proj-video-hero video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
  background: #000;
}

/* Fallback caption below the video hero */
.proj-video-caption {
  font-size: 0.75rem;
  font-weight: var(--fw-light);
  color: #999;
  line-height: 1.45;
  margin-top: 8px;
  text-align: left;
}

.proj-video-caption a {
  color: var(--blue);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}

.proj-video-caption a:hover { opacity: 0.7; }

/* ─── Linked video (clicking navigates to project page) ─── */
.proj-video-link {
  display: block;
  cursor: pointer;
  position: relative;
}

.proj-video-link video {
  pointer-events: none; /* clicks fall through to the <a> */
  display: block;
  width: 100%;
}


/* ─── Photo credit note: matches proj-caption styling ─── */
.proj-note {
  font-size: 0.75rem;              /* same as proj-caption */
  font-weight: var(--fw-light);
  color: #999;                     /* same as proj-caption */
  padding-right: var(--side-pad);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  line-height: 1.45;               /* same as proj-caption */
  text-align: left;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECT PAGE — MOBILE OVERRIDES  (≤ 768px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .proj-grid {
    display: block;
    padding-right: 0;
  }

  /* Hero: full bleed on mobile
     (.main-content has padding-left: 0 on mobile, so no negative margin needed) */
  .proj-hero {
    padding-right: 0;
  }

  .proj-hero img {
    max-height: 65svh;
    object-fit: cover;   /* crop to fill on mobile — wide image fits narrow screen */
    width: 100%;
  }

  /* Text sections: apply horizontal inset */
  .proj-intro-text,
  .proj-section,
  .proj-full-text {
    padding-left: 20px;
    padding-right: 20px;
  }

  .proj-intro-text {
    padding-top: 32px;
    padding-bottom: 0;
  }

  /* Full-width images: edge to edge on mobile */
  .proj-full {
    padding-right: 0;
    padding-left: 0;
    padding-top: var(--section-pad);
  }

  /* Captions inside full-bleed blocks get side padding on mobile */
  .proj-full .proj-caption,
  .proj-video-caption {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Image / video follows text on mobile */
  .proj-col-media {
    margin-top: 24px;
  }

  /* Power felting: collapse to single column on mobile */
  .proj-power-grid {
    display: block;
    padding-right: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .proj-power-content {
    margin-top: 24px;
  }

  .proj-note {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  /* Hide the bouncing scroll arrow on mobile */
  .proj-scroll-arrow {
    display: none;
  }
}
