/* ==========================================================================
   Gallery Layout: Floating Pill Nav, Open-Air Cinema Hero, Intro, Mixed Grid & Footer
   ========================================================================== */

/* --- 5.1 Sticky Floating Capsule Nav --- */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding-top: 14px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 18px;
  background: var(--forest);
  color: var(--on-forest);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  max-width: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-right: 14px;
  min-height: 44px;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-filters {
  display: flex;
  align-items: center;
  gap: 2px;
}

.filter-btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.68;
  white-space: nowrap;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover {
  opacity: 1;
}

.filter-btn[aria-pressed="true"] {
  opacity: 1;
  background: rgba(180, 224, 106, 0.18);
}

.filter-count {
  font-size: 11px;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  opacity: 1;
  background: rgba(180, 224, 106, 0.14);
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}

.contact-pill:hover {
  filter: brightness(1.06);
}

/* --- 5.2 Open-Air Cinema Hero --- */
.hero-wrap {
  padding-top: 22px;
}

.hero-stage {
  position: relative;
  aspect-ratio: 2.4 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.hero-canvas {
  position: absolute;
  inset: 0;
}

.hero-dev {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Signature load-in: the valley "develops" from coarse grain to fine grain */
.hero-dev-4 {
  opacity: 0;
}
/* safety net: never leave the coarse layer up if scripts fail */
.hero-dev-8 {
  animation: dev-out 0s linear 4s forwards;
}
.hero-stage.is-developing .hero-dev-8 {
  animation: dev-out 0s linear 0.34s forwards;
}
.hero-stage.is-developing .hero-dev-4 {
  animation: dev-step 0.62s steps(1, end) forwards;
}
.hero-stage.is-developed .hero-dev {
  display: none !important; /* beats the day/night display toggles */
}
@keyframes dev-out {
  to { opacity: 0; }
}
@keyframes dev-step {
  0% { opacity: 0; }
  55% { opacity: 1; }
  100% { opacity: 0; }
}

/* Screen "powers on" once the valley has developed */
.hero-stage.is-developing .cinema-screen-inner,
.hero-stage.is-developed .cinema-screen-inner {
  animation: screen-on 0.5s steps(1, end) 0.62s both;
}
@keyframes screen-on {
  0% { opacity: 0.08; }
  20% { opacity: 0.85; }
  35% { opacity: 0.2; }
  55% { opacity: 1; }
  70% { opacity: 0.6; }
  100% { opacity: 1; }
}
.hero-stage.is-developed .cinema-screen-inner {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-dev {
    display: none !important;
  }
  .hero-stage .cinema-screen-inner {
    animation: none !important;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Exact coordinates calibrated to hero-cinema.png screen box (39%, 22%, 22%, 29.7%) */
.cinema-screen {
  position: absolute;
  left: 39%;
  top: 22%;
  width: 22%;
  height: 29.7%;
  background: #0d2216;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 0;
  overflow: visible;
  z-index: 2;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .cinema-screen {
  box-shadow: 0 0 90px 18px rgba(180, 224, 106, 0.16), 0 0 28px 2px rgba(180, 224, 106, 0.12);
}

/* Guarantee >= 44px touch target even on 360px-wide phones without shifting visual alignment */
.cinema-screen::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.cinema-screen-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d2216;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinema-screen video,
.cinema-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-screen video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cinema-screen.is-playing video {
  opacity: 1;
}

.showreel-prompt {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.cinema-screen.is-playing .showreel-prompt {
  opacity: 0;
  transform: scale(0.94);
}

.cinema-screen:hover .showreel-prompt,
.cinema-screen:focus-visible .showreel-prompt {
  opacity: 1;
  transform: scale(1);
}

.play-disc {
  width: clamp(32px, 3.6vw, 52px);
  height: clamp(32px, 3.6vw, 52px);
  border-radius: 50%;
  background: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(7, 26, 17, 0.45);
}

.showreel-label {
  font-size: clamp(9px, 0.8vw, 11px);
  background: rgba(7, 26, 17, 0.72);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--pal-7);
}

.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  margin-right: 7px;
  vertical-align: 1px;
  animation: rec-blink 1.6s steps(1, end) infinite;
}
@keyframes rec-blink {
  50% { opacity: 0.25; }
}

.hero-badge-top {
  z-index: 3;
  position: absolute;
  left: 20px;
  top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-size: 11px;
  pointer-events: none;
}

.hero-badge-bottom {
  z-index: 3;
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(241, 245, 232, 0.82);
  color: #0d2216;
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .hero-badge-bottom {
  background: rgba(13, 34, 22, 0.72);
  color: rgba(226, 247, 168, 0.92);
}

/* Shared clean video frame hover ring (ZERO overlays/grain inside video!) */
.vid-frame {
  outline: 2px solid transparent;
  outline-offset: 0;
  transition: outline-color 0.25s ease, outline-offset 0.25s ease;
}

.vid-frame:hover,
.vid-frame:focus-visible {
  outline-color: var(--lime);
  outline-offset: 5px;
}

/* --- 5.3 Intro Section --- */
.intro-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 32px 64px;
  align-items: end;
  padding: 56px 0 48px;
}

.intro-moon {
  position: absolute;
  right: 0;
  top: 36px;
  width: 72px;
  height: 72px;
  pointer-events: none;
}

.hero-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.hero-h1-accent {
  color: var(--green);
}

.intro-aside {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 340px;
}

.intro-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.cta-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--on-forest);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-dark:hover {
  opacity: 0.92;
}

.cta-square {
  width: 8px;
  height: 8px;
  background: var(--lime);
  display: block;
  flex-shrink: 0;
}

/* --- 5.4 MADE WITH Strip --- */
.tools-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
  margin-bottom: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.tools-lead {
  color: var(--ink);
  font-weight: 500;
  flex-shrink: 0;
}

.tools-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  min-width: 0;
}

.tool-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.tool-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  display: block;
  flex-shrink: 0;
}

/* --- 5.5 Selected Work Mixed Equal-Height Gallery --- */
.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 112px;
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  margin-bottom: -16px;
}

.gallery-h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: 0.02em;
}

.section-index {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
  transform: translateY(-0.9em);
}

.gallery-stats {
  font-size: 12px;
  color: var(--muted);
}

/* Mobile filter bar (hidden on desktop) */
.mobile-filters {
  display: none;
}

.gallery-rows {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Rows rise in as they enter the viewport (cards stagger by --i) */
@media (prefers-reduced-motion: no-preference) {
  .gallery-row.will-reveal .work-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .gallery-row.will-reveal.is-in .work-card {
    opacity: 1;
    transform: none;
  }
}

.gallery-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.work-card {
  flex: var(--ar) 1 0px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-spacer {
  flex: var(--ar) 1 0px;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
}

.work-media-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 6px;
  background: var(--card);
  overflow: hidden;
  text-decoration: none;
  /* hairline drawn OUTSIDE the frame — never covers the picture */
  box-shadow: 0 0 0 1px var(--hair);
}

.work-media-link img,
.work-media-link video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-media-link video {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-media-link.is-playing video {
  opacity: 1;
}

.work-placeholder {
  font-size: 11px;
  color: rgba(180, 224, 106, 0.55);
  pointer-events: none;
}

/* Only element allowed on video box, visible ONLY on hover/focus */
.preview-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.work-media-link:hover .preview-pill,
.work-media-link:focus-visible .preview-pill {
  opacity: 1;
  transform: none;
}

.preview-pill-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--on-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
  .has-play-cursor .work-media-link {
    cursor: none;
  }
  .has-play-cursor .work-media-link:hover .preview-pill {
    opacity: 0;
  }
}

.play-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
  transform: translate3d(-200px, -200px, 0) scale(0.2);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 10px 30px rgba(7, 26, 17, 0.28);
  will-change: transform;
}
.has-play-cursor .play-cursor {
  display: flex;
}
.play-cursor.is-visible {
  opacity: 1;
}
.play-cursor-dot {
  display: inline-flex;
}

.work-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}

.work-title-group {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.work-num {
  font-size: 11px;
  color: var(--green);
  margin-right: 8px;
}

.work-sub {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --- About · services · numbers · partners --- */
.about-section {
  border-top: 1px solid var(--line);
  padding: 40px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.about-section[hidden] {
  display: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px 80px;
  align-items: start;
}
.about-lead {
  margin: 0 0 28px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.7;
  max-width: 36em;
}
.about-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-services li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.about-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}
.about-stats:empty {
  display: none;
}
.about-stat dt {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}
.about-stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.about-stat {
  display: flex;
  flex-direction: column-reverse;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.about-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.about-partners[hidden] {
  display: none;
}
.about-partners-label {
  font-size: 12px;
  color: var(--muted);
}
.about-partners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 36px;
}
.about-partners-list li {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.72;
}
.about-partners-list img {
  height: 26px;
  width: auto;
  opacity: 0.8;
  filter: grayscale(1) contrast(1.1);
}

/* --- 5.6 Footer (Hills Strip + Forest Ground) --- */
.site-footer {
  position: relative;
}

.footer-hills {
  display: block;
  width: 100%;
  height: clamp(130px, 16vw, 240px);
  object-fit: cover;
  object-position: center bottom;
  margin-bottom: -2px;
}

.footer-ground {
  background-color: var(--forest);
  background-image:
    radial-gradient(ellipse 72% 58% at 50% 0%, rgba(180, 224, 106, 0.085), transparent 72%),
    url("../assets/dither/bg-dark.png");
  background-size: 100% 100%, 320px 320px;
  color: var(--on-forest);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  border-left: 1px solid rgba(228, 243, 210, 0.12);
  border-right: 1px solid rgba(228, 243, 210, 0.12);
  padding: 44px clamp(16px, 3vw, 48px) 28px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.footer-cta-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 32px 48px;
}

.footer-lead {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(228, 243, 210, 0.78);
}

.footer-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.footer-h2-accent {
  color: var(--lime);
}

.footer-contact-card {
  background: rgba(7, 26, 17, 0.45);
  border: 1px solid rgba(180, 224, 106, 0.18);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-card-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(228, 243, 210, 0.78);
}

.footer-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.email-pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.email-pill:hover {
  filter: brightness(1.06);
}

.footer-copy-btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(180, 224, 106, 0.26);
  background: transparent;
  color: var(--on-forest);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-copy-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.wechat-btn {
  position: relative;
}
.wechat-btn[hidden] {
  display: none;
}
.wechat-qr {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.wechat-qr img {
  display: block;
  width: 132px;
  height: 132px;
}
.wechat-btn:hover .wechat-qr:not([hidden]),
.wechat-btn:focus-visible .wechat-qr:not([hidden]) {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(232, 245, 212, 0.78);
  border-top: 1px solid rgba(232, 245, 212, 0.14);
  padding-top: 10px;
}

.back-top-link {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(232, 245, 212, 0.8);
  transition: color 0.2s ease;
}

.back-top-link:hover {
  color: var(--lime);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--lime);
}

/* --- 7. Mobile Responsive (<= 760px) --- */
@media (max-width: 760px) {
  .page-shell {
    padding: 0 8px;
  }

  .nav-pill {
    padding: 4px 6px 4px 14px;
    gap: 4px;
  }

  .brand-link {
    margin-right: 4px;
  }

  .nav-filters {
    display: none;
  }

  .contact-pill {
    min-height: 44px;
    padding: 0 14px;
  }

  /* Crop the valley around the screen so the screen reads on phones */
  .hero-stage {
    aspect-ratio: 1.5 / 1;
  }
  .hero-canvas {
    inset: 0 auto auto -30%;
    width: 160%;
    aspect-ratio: 2.4 / 1;
  }

  .hero-h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .tools-strip {
    gap: 14px;
    overflow: hidden;
  }
  .tools-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .tools-track::-webkit-scrollbar {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-section {
    padding-bottom: 72px;
  }

  .gallery-h2 {
    font-size: 28px;
  }

  .hero-badge-top {
    left: 10px;
    top: 10px;
    font-size: 10px;
    padding: 4px 8px;
  }

  .hero-badge-bottom {
    display: none;
  }

  .showreel-label {
    display: none;
  }

  .intro-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 24px;
  }

  .intro-aside {
    justify-self: start;
  }

  .intro-moon {
    display: none;
  }

  .tools-strip {
    margin-bottom: 44px;
  }

  .mobile-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: -4px;
  }

  .mobile-filters .filter-btn {
    min-height: 44px;
    justify-content: center;
    padding: 0 8px;
    font-size: 12.5px;
    background: rgba(15, 42, 30, 0.08);
    border: 1px solid var(--line);
    color: var(--ink);
    opacity: 0.88;
  }

  :root:has(> head > meta[name="color-scheme"][content="dark"]) .mobile-filters .filter-btn {
    background: rgba(228, 243, 210, 0.06);
  }

  .mobile-filters .filter-btn[aria-pressed="true"] {
    background: var(--lime);
    color: var(--on-lime);
    border-color: transparent;
    opacity: 1;
    font-weight: 600;
  }

  .gallery-section {
    gap: 32px;
    padding-bottom: 72px;
  }

  .gallery-rows {
    gap: 36px;
  }

  .gallery-row {
    flex-wrap: wrap;
    gap: 28px 16px;
  }

  .work-card.is-landscape {
    flex: 1 1 100%;
  }

  .work-card.is-vertical {
    flex: 1 1 calc(50% - 8px);
  }

  .work-spacer {
    display: none;
  }

  .footer-cta-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* no numbers yet → single column */
.about-grid:has(.about-stats:empty) {
  grid-template-columns: 1fr;
}

.nav-filters[hidden],
.mobile-filters[hidden] {
  display: none !important;
}

.tools-strip[hidden] {
  display: none;
}
