/* ═══════════════════════════════════════════════════════════
   GRANT BENESH - DI COLORIST
   Clean standalone styles (no Squarespace overrides needed)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Standardized motion tokens for consistent feel */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);   /* smooth overshoot-free ease-out */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);    /* buttery exit curve */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-med:  400ms;
  --dur-slow: 700ms;

  /* Typography — two families, two letter-spacing values */
  --font-sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --ls-tight: 0.04em;
  --ls-wide:  0.12em;
}

/* ---------- CUSTOM CURSOR ---------- */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
  .gb-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    background: #40916C;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    box-shadow: 0 0 10px rgba(64,145,108,0.45);
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, opacity 0.2s ease;
    will-change: left, top, transform;
  }
  .gb-cursor.hovering {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0.7;
  }
}
@media (pointer: coarse) {
  .gb-cursor { display: none; }
}

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

html {
  background: #000;
  color: #fff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #000;
  min-height: 100vh;
}

/* ---------- PAGE LOADER ---------- */
.gb-loader {
  position: fixed; inset: 0; z-index: 9998;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 600ms ease;
}
.gb-loader.gb-loader-done {
  opacity: 0;
  pointer-events: none;
}
.gb-loader-dot {
  width: 8px; height: 8px;
  background: #40916C;
  border-radius: 50%;
  animation: gb-pulse 1s ease-in-out infinite;
}
@keyframes gb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.6); opacity: 1; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- PAGE TRANSITIONS ---------- */
#main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 280ms var(--ease-out),
              transform 280ms var(--ease-out);
  will-change: opacity, transform;
}
#main.gb-page-exit {
  opacity: 0;
  transform: translateY(8px);
}

/* ---------- SKIP LINK (keyboard users) ---------- */
.gb-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.gb-skip-link:focus {
  position: fixed;
  top: 16px; left: 16px;
  width: auto; height: auto;
  padding: 10px 18px;
  background: #40916C;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wide);
  text-transform: lowercase;
  border-radius: 4px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .gb-tile { opacity: 1 !important; }
}

/* ---------- HEADER ---------- */
.gb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 20px 3vw;
  background: transparent;
  transition: transform 400ms var(--ease-smooth),
              opacity 300ms var(--ease-out);
}
.gb-header.gb-header-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.gb-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.gb-logo {
  display: flex;
  align-items: center;
}
.gb-logo img {
  height: 54px;
  width: auto;
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.gb-logo:hover img {
  opacity: 1;
}

.gb-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.gb-nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: var(--ls-tight);
  text-transform: lowercase;
  color: rgba(255,255,255,0.5);
  transition: color 250ms var(--ease-out);
  padding: 4px 0;
}
.gb-nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #40916C;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms var(--ease-out);
}
.gb-nav-link:hover {
  color: rgba(255,255,255,0.95);
}
.gb-nav-link:hover::after,
.gb-nav-link.active::after {
  transform: scaleX(1);
}
.gb-nav-link.active {
  color: #fff;
}

/* Focus-visible for keyboard accessibility */
.gb-nav-link:focus-visible,
.gb-footer-link:focus-visible,
.gb-load-more:focus-visible,
.gb-abt-cta-btn:focus-visible,
.gb-ph-back:focus-visible,
.gb-credits-back:focus-visible,
.gb-tile:focus-visible,
.gb-pn-float:focus-visible,
.gb-pn-bottom-link:focus-visible,
.gb-lb-close:focus-visible,
.gb-lb-prev:focus-visible,
.gb-lb-next:focus-visible {
  outline: 2px solid #40916C;
  outline-offset: 3px;
}

/* ---------- HOME: HERO ---------- */
.gb-home-hero {
  position: relative;
  display: block;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: #fff;
}

.gb-hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  animation: gb-kenburns 28s ease-in-out infinite alternate;
}
@keyframes gb-kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1.2%, -0.8%); }
}
/* Pause ken-burns on hover (hover-zoom takes over) */
.gb-home-hero:hover .gb-hero-img { animation-play-state: paused; }

/* Animated GIF hero - uses <img> tag for proper playback */
.gb-hero-media {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

.gb-home-hero:hover .gb-hero-img,
.gb-home-hero:hover .gb-hero-media {
  transform: translate(-50%, -50%) scale(1.03);
}

/* Non-GIF hero hover (no translate needed) */
.gb-home-hero:hover .gb-hero-img {
  transform: scale(1.03);
}

.gb-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 55%,
    rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.gb-hero-info {
  position: absolute;
  left: 24px; bottom: 32px;
  z-index: 2;
}

.gb-hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: var(--ls-tight);
  opacity: 0.6;
  margin-bottom: 8px;
}

.gb-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ---------- HOME: STATEMENT BLOCK ---------- */
.gb-statement {
  padding: 60px 6vw 50px;
}

.gb-statement p {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

.gb-statement-sub {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 14px) !important;
  font-weight: 400 !important;
  letter-spacing: var(--ls-wide);
  text-transform: lowercase;
  color: rgba(255,255,255,0.4) !important;
  margin-top: 16px !important;
}

.gb-st-hi {
  color: #40916C;
}

/* ---------- HOME: MIXED GRID (Ethos-style) ---------- */
.gb-home-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

.gb-grid-row {
  display: grid;
  gap: 10px;
}

.gb-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.gb-row-2L {
  grid-template-columns: 2fr 1fr;
}

.gb-row-2R {
  grid-template-columns: 1fr 2fr;
}

.gb-row-2 {
  grid-template-columns: 1fr 1fr;
}

/* ---------- HOME: ROW HEIGHTS (cinematic 16:9+) ---------- */
.gb-row-3  { height: 19.5vw; }
.gb-row-2L,
.gb-row-2R,
.gb-row-2  { height: 28vw; }

/* ---------- HOME: TILES ---------- */
.gb-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
  color: #fff;
  height: 100%;
  cursor: pointer;
}

.gb-tile-img,
.gb-tile-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 900ms var(--ease-smooth),
              filter 600ms var(--ease-smooth);
  filter: brightness(0.85);
  will-change: transform, filter;
}

.gb-tile:hover .gb-tile-img {
  transform: scale(1.06) !important;
  filter: brightness(1);
}

.gb-tile-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 3;
}

.gb-tile:hover .gb-tile-img,
.gb-tile:hover .gb-tile-media {
  transform: scale(1.04);
  filter: brightness(0.65);
}

.gb-tile-info {
  position: absolute;
  left: 20px; right: 20px; bottom: 16px;
  color: #fff;
  z-index: 4;
}

.gb-tile-client {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: #fff;
  margin-bottom: 3px;
  line-height: 1.2;
}

.gb-tile-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: var(--ls-tight);
  color: rgba(255,255,255,0.5);
}

.gb-tile-credits {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 450ms cubic-bezier(.16,1,.3,1),
              opacity 350ms ease,
              margin 350ms ease;
  margin-top: 0;
}

.gb-tile:hover .gb-tile-credits {
  max-height: 120px;
  opacity: 1;
  margin-top: 8px;
}

.gb-tile-credit {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

.gb-tile-credit-role {
  font-family: var(--font-mono);
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: lowercase;
  letter-spacing: var(--ls-tight);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.gb-tile {
  /* Subtle placeholder so tile background isn't pure-black while media loads */
  background: #000;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

.gb-tile.gb-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger tiles within the same row */
.gb-grid-row .gb-tile:nth-child(1) { transition-delay: 0ms; }
.gb-grid-row .gb-tile:nth-child(2) { transition-delay: 90ms; }
.gb-grid-row .gb-tile:nth-child(3) { transition-delay: 180ms; }

/* ---------- HOME: FOOTER ---------- */
.gb-home-footer {
  padding: 60px 3vw 28px;
}

/* ---------- SHARED FOOTER ---------- */
.gb-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 72px 1vw 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: lowercase;
}

.gb-footer-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 3px;
  transition: border-color 200ms ease, color 200ms ease;
}

.gb-footer-link:hover {
  border-bottom-color: #fff;
  color: #fff;
}

.gb-footer-sep {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  line-height: 1;
  padding-bottom: 3px;
}

.gb-proj-footer {
  padding: 48px 4vw 32px;
}

/* ---------- NEXT PROJECT ---------- */
/* ---------- PREV/NEXT: Floating Side Arrows ---------- */
.gb-pn-float {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: rgba(255,255,255,0.35);
  transition: color 0.25s;
}
.gb-pn-float:hover { color: #40916C; }
.gb-pn-left { left: 20px; }
.gb-pn-right { right: 20px; }
.gb-pn-circle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: border-color 0.25s, background 0.25s;
  background: rgba(10,10,10,0.8); backdrop-filter: blur(8px);
}
.gb-pn-float:hover .gb-pn-circle {
  border-color: #40916C; background: rgba(64,145,108,0.1);
}
.gb-pn-name {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: var(--ls-wide); text-transform: lowercase;
  writing-mode: vertical-lr; text-orientation: mixed;
  max-height: 120px; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity 0.3s;
}
.gb-pn-float:hover .gb-pn-name { opacity: 1; }
.gb-pn-left .gb-pn-name { transform: rotate(180deg); }

/* ---------- PREV/NEXT: Bottom Inline Row ---------- */
.gb-pn-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto;
  padding: 48px 5vw 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.gb-pn-bottom-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: #fff;
  transition: color 0.25s, gap 0.25s;
}
.gb-pn-bottom-link:hover { color: #40916C; gap: 18px; }
.gb-pn-bottom-arrow {
  font-size: 20px; color: rgba(255,255,255,0.3);
  transition: color 0.25s;
}
.gb-pn-bottom-link:hover .gb-pn-bottom-arrow { color: #40916C; }
.gb-pn-bottom-name {
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
}
.gb-pn-bottom-right { text-align: right; }

/* ---------- LOAD MORE BUTTON ---------- */
.gb-load-more-wrap {
  text-align: center;
  padding: 2vh 0 4vh;
  background: #000;
}
.gb-load-more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: lowercase;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}
.gb-load-more:hover {
  color: #fff;
  border-color: #40916C;
}

/* ---------- ABOUT PAGE ---------- */
/* ========== ABOUT PAGE (Option C - Big Type Editorial) ========== */
#gb-about {
  padding: 120px 6vw 80px;
  max-width: 1400px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-sans);
}

.gb-abt-opening {
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.85);
  max-width: 860px;
  margin: 0 0 72px;
}
.gb-abt-opening strong { color: #fff; font-weight: 700; }

.gb-abt-tagline {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: var(--ls-wide);
  color: rgba(255,255,255,0.4);
  margin-top: 24px;
  line-height: 1.7;
}

/* Hero: text + photo side by side */
.gb-abt-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.gb-abt-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gb-abt-hero-text .gb-abt-opening {
  margin-bottom: 0;
}
.gb-abt-hero-photo {
  position: relative;
  width: 280px;
  aspect-ratio: 1/1;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.gb-abt-hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Info grid */
.gb-abt-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 64px;
}
.gb-abt-card {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.gb-abt-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: var(--ls-wide);
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.gb-abt-card-val {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.gb-abt-card-val a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s;
}
.gb-abt-card-val a:hover { border-color: #40916C; }

/* Section labels */
.gb-abt-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: var(--ls-wide);
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}

/* Services */
.gb-abt-services {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 48px 0;
  margin-bottom: 48px;
}
.gb-abt-svc-list {
  list-style: none;
  margin: 0; padding: 0;
}
.gb-abt-svc-list li {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.45);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.3s;
  cursor: default;
}
.gb-abt-svc-list li:hover { color: #fff; }
.gb-abt-svc-list li span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--ls-tight);
  text-transform: lowercase;
  color: rgba(255,255,255,0.3);
  margin-left: 16px;
  transition: color 0.3s;
}
.gb-abt-svc-list li:hover span { color: rgba(255,255,255,0.55); }

/* CTA */
.gb-abt-cta {
  text-align: center;
  padding: 64px 0 40px;
}
.gb-abt-cta-text {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin: 0 0 24px;
}
.gb-abt-cta-btn {
  display: inline-block;
  font-family: var(--font-mono);
  text-transform: lowercase;
  letter-spacing: var(--ls-tight);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  cursor: pointer;
}
.gb-abt-cta-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
}

/* About page footer */
.gb-about-footer {
  padding: 60px 3vw 28px;
}

/* ---------- PROJECT PAGE: HERO (credits left, media right) ---------- */
.gb-proj-hero {
  position: relative;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 4vw;
  min-height: 100vh;
  padding: 120px 4vw 60px;
  color: #fff;
  max-width: 100%;
  overflow: hidden;
}

.gb-ph-left {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  min-width: 0;
}

.gb-ph-client {
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  color: #40916C;
  margin-bottom: 14px;
}

.gb-ph-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 10px;
  text-transform: none;
}

.gb-ph-sub {
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: lowercase;
  opacity: 0.55;
  margin-bottom: 36px;
}

.gb-ph-credits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.55;
}

.gb-ph-credit .gb-ph-k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: var(--ls-tight);
  opacity: 0.55;
  margin-right: 6px;
}

.gb-ph-credit .gb-ph-v {
  font-family: var(--font-sans);
  color: #fff;
  font-weight: 600;
}

.gb-ph-back {
  margin-top: auto;
  padding-top: 40px;
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: var(--ls-wide);
  color: #fff;
  text-decoration: none;
  align-self: flex-start;
}

.gb-ph-back:hover { opacity: 0.7; }

.gb-ph-right {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  align-self: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.gb-ph-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.gb-ph-media--yt {
  width: 120%;
  height: 120%;
  left: -10%;
  top: -10%;
}

/* Click-to-play poster overlay */
.gb-ph-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 2;
}

.gb-ph-play:hover {
  background: rgba(0,0,0,0.8);
  transform: translate(-50%,-50%) scale(1.08);
  border-color: #fff;
}

.gb-ph-play-tri {
  width: 0; height: 0;
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}

/* ---------- EXTRA VIDEOS ---------- */
.gb-extra-vids {
  background: #000;
  padding: 6vh 4vw 4vh;
  display: flex;
  flex-direction: column;
  gap: 4vh;
}
.gb-extra-vids-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: var(--ls-wide);
  text-transform: lowercase;
  color: #40916C;
  margin-bottom: -1vh;
}
.gb-extra-vid {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
}
.gb-extra-vid iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ---------- STILLS GRID ---------- */
.gb-stills-section {
  background: #000;
  padding: 6vh 4vw 10vh;
}

.gb-stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1px;
  gap: 0 10px;
  max-width: 1600px;
  margin: 0 auto;
}

.gb-stills-grid .gb-still {
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 4px;
  padding-bottom: 10px;
  /* Subtle placeholder gradient while image loads (no black square flash) */
  background: #000;
  position: relative;
}

.gb-stills-grid .gb-still img {
  display: block;
  width: 100%;
  opacity: 0;
  transform: scale(1.02);
  transition: transform 600ms var(--ease-out),
              opacity 600ms var(--ease-out),
              filter 600ms var(--ease-out);
  filter: blur(8px);
}

.gb-stills-grid .gb-still img.gb-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.gb-stills-grid .gb-still:hover img.gb-loaded {
  transform: scale(1.03);
  opacity: 0.92;
}

/* ---------- LIGHTBOX ---------- */
.gb-lb {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  display: none; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 260ms var(--ease-out),
              background 260ms var(--ease-out),
              backdrop-filter 260ms var(--ease-out);
}

.gb-lb.open {
  display: flex;
  opacity: 1;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(14px);
}

.gb-lb .gb-lb-stage {
  width: 92vw; height: 88vh;
  display: flex; align-items: center; justify-content: center;
}

.gb-lb .gb-lb-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 320ms var(--ease-out),
              transform 320ms var(--ease-out);
}
.gb-lb.open .gb-lb-img {
  opacity: 1;
  transform: scale(1);
}
.gb-lb .gb-lb-img.gb-lb-switching {
  opacity: 0;
  transform: scale(0.97);
}

.gb-lb .gb-lb-close,
.gb-lb .gb-lb-prev,
.gb-lb .gb-lb-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer;
  font-family: var(--font-sans);
  transition: background 180ms ease, border-color 180ms ease;
}

.gb-lb .gb-lb-close {
  top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  font-size: 22px; line-height: 1;
}

.gb-lb .gb-lb-prev,
.gb-lb .gb-lb-next {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 20px;
}

.gb-lb .gb-lb-prev { left: 24px; }
.gb-lb .gb-lb-next { right: 24px; }

.gb-lb .gb-lb-close:hover,
.gb-lb .gb-lb-prev:hover,
.gb-lb .gb-lb-next:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

.gb-lb .gb-lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: var(--ls-wide);
}

/* ---------- 404 ---------- */
.gb-404 {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 6vw 80px;
  color: #fff;
}
.gb-404-wrap {
  max-width: 640px;
  text-align: left;
}
.gb-404-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  color: #40916C;
  margin-bottom: 24px;
}
.gb-404-title {
  font-family: var(--font-sans);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}
.gb-404-sub {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 520px;
}
.gb-404-sub code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #fff;
  background: rgba(64,145,108,0.12);
  padding: 2px 8px;
  border-radius: 3px;
}
.gb-404-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.gb-404-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  transition: background 240ms var(--ease-out),
              border-color 240ms var(--ease-out),
              color 240ms var(--ease-out);
}
.gb-404-btn:hover {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.gb-404-btn-primary {
  background: #40916C;
  border-color: #40916C;
  color: #fff;
}
.gb-404-btn-primary:hover {
  background: #357a5b;
  border-color: #357a5b;
}

/* ---------- RESPONSIVE ---------- */

/* iPad landscape and smaller desktops (1024px) */
@media (max-width: 1024px) {
  .gb-home-grid { gap: 8px; padding: 8px 0; }
  .gb-proj-hero { gap: 3vw; }
  .gb-ph-play { width: 72px; height: 72px; }
  .gb-ph-play-tri { border-left-width: 18px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 4px; }
  .gb-pn-float { display: none; }
}

/* iPad portrait and tablets (768-900px) */
@media (max-width: 900px) {
  .gb-header { padding: 16px 4vw; }
  .gb-logo img { height: 42px; }

  #gb-about { padding: 100px 6vw 80px; }
  .gb-abt-hero { gap: 40px; }
  .gb-abt-hero-photo { width: 240px; }
  .gb-abt-info-grid { grid-template-columns: 1fr; gap: 0; }
  .gb-abt-card { padding: 24px 0; }

  .gb-proj-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 100px 5vw 50px;
    min-height: 0;
  }
  .gb-ph-left { order: 2; }
  .gb-ph-right { order: 1; aspect-ratio: 16/9; }
  .gb-ph-back { padding-top: 24px; }
  .gb-ph-credits { font-size: 11px; }

  .gb-stills-grid { grid-template-columns: repeat(2, 1fr); gap: 0 8px; }
  .gb-stills-section { padding: 4vh 4vw 8vh; }
}

/* Smaller tablets and large phones (720px) */
@media (max-width: 720px) {
  .gb-lb .gb-lb-prev { left: 10px; width: 44px; height: 44px; }
  .gb-lb .gb-lb-next { right: 10px; width: 44px; height: 44px; }
  .gb-lb .gb-lb-stage { width: 96vw; height: 82vh; }

  .gb-abt-svc-list li span { display: block; margin-left: 0; margin-top: 4px; }
}

/* Mobile phones (620px) */
@media (max-width: 620px) {
  .gb-header { padding: 14px 4vw; }
  .gb-logo img { height: 32px; }
  .gb-nav { gap: 14px; }
  .gb-nav-link { font-size: 11px; letter-spacing: var(--ls-tight); }

  .gb-statement { padding: 48px 6vw 40px; }
  .gb-statement p { font-size: 22px; }
  .gb-statement-sub { font-size: 11px !important; }

  .gb-home-grid { gap: 6px; padding: 6px 0; }
  .gb-grid-row { gap: 6px; }
  .gb-row-3,
  .gb-row-2L,
  .gb-row-2R,
  .gb-row-2 { grid-template-columns: 1fr; height: auto; }
  .gb-tile { height: auto; aspect-ratio: 16 / 9; }
  .gb-tile-info { left: 14px; right: 14px; bottom: 12px; }
  .gb-tile-client { font-size: 14px; }
  .gb-tile-title { font-size: 10px; }
  .gb-tile-credits { max-height: 80px; opacity: 1; margin-top: 4px; }
  .gb-tile-credit { font-size: 10px; }

  .gb-proj-hero { padding: 80px 5vw 32px; gap: 20px; }
  .gb-ph-client { font-size: 10px; }
  .gb-ph-title { font-size: 22px; }
  .gb-ph-sub { font-size: 11px; }
  .gb-ph-credits { font-size: 10px; }
  .gb-ph-back { padding-top: 20px; font-size: 10px; }
  .gb-ph-play { width: 56px; height: 56px; }
  .gb-ph-play-tri { border-left-width: 14px; border-top-width: 8px; border-bottom-width: 8px; margin-left: 3px; }

  .gb-extra-vids { padding: 3vh 5vw 2vh; }
  .gb-extra-vid { max-width: 100%; }

  .gb-stills-grid { grid-template-columns: repeat(2, 1fr); gap: 0 6px; }
  .gb-stills-section { padding: 3vh 5vw 6vh; }

  #gb-about { padding: 80px 5vw 60px; }
  .gb-abt-hero { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; justify-items: start; }
  .gb-abt-hero-photo { width: 220px; }
  .gb-abt-opening { margin-bottom: 60px; }
  .gb-abt-services { padding: 48px 0; margin-bottom: 40px; }

  .gb-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    font-size: 10px;
  }

  .gb-home-footer,
  .gb-about-footer { padding: 40px 4vw 20px; }

  .gb-lb .gb-lb-prev { left: 8px; width: 40px; height: 40px; font-size: 16px; }
  .gb-lb .gb-lb-next { right: 8px; width: 40px; height: 40px; font-size: 16px; }
  .gb-lb .gb-lb-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 18px; }
  .gb-lb .gb-lb-counter { bottom: 16px; font-size: 10px; }
}

/* Small phones (480px and below) */
@media (max-width: 420px) {
  .gb-logo img { height: 28px; }
  .gb-nav { gap: 10px; }
  .gb-nav-link { font-size: 10px; }

  .gb-stills-grid { grid-template-columns: 1fr; gap: 0 4px; }
  .gb-stills-section { padding: 3vh 4vw 6vh; }

  .gb-proj-hero { padding: 74px 4vw 24px; gap: 16px; }
  .gb-ph-title { font-size: 20px; }

  #gb-about { padding: 74px 5vw 60px; }
  .gb-abt-hero-photo { width: 180px; }
  .gb-abt-cta-btn { font-size: 15px; padding: 12px 32px; }

  .gb-lb .gb-lb-prev, .gb-lb .gb-lb-next { width: 32px; height: 32px; font-size: 14px; }
  .gb-lb .gb-lb-prev { left: 4px; }
  .gb-lb .gb-lb-next { right: 4px; }
  .gb-lb .gb-lb-stage { width: 100vw; height: 80vh; }
}

/* Touch device: show credits by default, enable swipe hint */
@media (hover: none) {
  .gb-tile-img,
  .gb-tile-media { filter: brightness(0.8); }
  .gb-tile-credits { max-height: 80px; opacity: 1; margin-top: 6px; }
  .gb-lb .gb-lb-prev, .gb-lb .gb-lb-next { opacity: 0.5; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .gb-proj-hero { padding-top: 70px; min-height: auto; }
  .gb-lb .gb-lb-stage { height: 70vh; }
}
