.logo-gallery-page {
  --gallery-paper: #f8f5f0;
  background: var(--gallery-paper);
  color: #191714;
}
.logo-gallery-page main { overflow: clip; }
.logo-gallery-page .logo-hero {
  background: linear-gradient(120deg, #fff8ed 0%, #f4eadf 42%, #aec7ff 78%, #3963d2 100%);
}
.logo-hero::before, .logo-hero::after { animation-name: none; }
.logo-hero .hero-copy { color: #64564b; }
/* Hero typography comes directly from showcase.css, shared with Websites and Products. */
.logo-orbit {
  position: relative; isolation: isolate; justify-self: start;
  width: calc(100% + clamp(1.25rem, 5vw, 4rem)); max-width: 640px;
  height: clamp(560px, 42vw, 620px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  user-select: none;
}
.logo-orbit-layer {
  position: absolute; inset: 0; isolation: isolate;
  /* Add the complementary fades without a dip in brightness at the midpoint. */
  mix-blend-mode: plus-lighter;
}
.logo-orbit.is-running .logo-orbit-layer { will-change: opacity; }
.logo-orbit-card {
  position: absolute; margin: 0; left: calc(var(--start-x) * 1%); top: calc(var(--start-y) * 1%);
  width: clamp(168px, 50%, 280px); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--start-scale));
  opacity: var(--start-opacity); z-index: var(--start-depth);
  border-radius: 22px; background: var(--orbit-paper, #fff);
  box-shadow: 0 24px 45px -18px rgba(16, 29, 55, .32), 0 3px 10px rgba(16, 29, 55, .08);
  pointer-events: none;
}
.logo-orbit.is-running .logo-orbit-card { will-change: transform, opacity; }
.logo-orbit-card img {
  display: block; width: 100%; height: 100%; aspect-ratio: 1;
  object-fit: contain; border-radius: inherit;
}
.logo-gallery-page .work-switcher { margin-bottom: 1.5rem; }
.background-setting { display: block; min-height: 44px; }
.site-footer .background-toggle {
  color: rgba(255, 250, 244, .76); font-size: 11px;
}
.collection-jump {
  position: relative; z-index: 20; display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem); padding: .65rem clamp(1.25rem, 4vw, 4rem);
  background: var(--gallery-paper); border-top: 1px solid #dcd6cf;
}
.collection-jump a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.collection-jump a:hover { text-decoration: underline; text-underline-offset: 6px; }
.collection-jump span { margin-left: auto; font-size: 11px; color: #766b61; }
.background-toggle {
  min-height: 44px; padding: .5rem 0; border: 0; background: transparent;
  color: #6e6259; font-size: 11px; text-decoration: underline;
  text-underline-offset: 4px; cursor: pointer;
}
.background-toggle[hidden] { display: none; }
.background-toggle:focus-visible { outline: 2px solid #b74928; outline-offset: 4px; }
.logo-collection {
  --collection-bg: #18161d; --collection-ink: #fff8ec; --collection-muted: #d0c3bd;
  --collection-accent: #ff8054; --tilt-direction: -1;
  --atmosphere-a: #774535; --atmosphere-b: #343359; --light-position: 75%;
  background: var(--collection-bg); color: var(--collection-ink);
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: minmax(185px, .58fr) minmax(0, 2.42fr);
  align-items: center; gap: clamp(20px, 2.6vw, 42px);
  padding: clamp(24px, 3.2vw, 44px) max(4vw, calc((100vw - 1600px) / 2));
  scroll-margin-top: 88px; overflow: clip;
}
.collection-right {
  grid-template-columns: minmax(0, 2.42fr) minmax(185px, .58fr);
  --tilt-direction: 1; --light-position: 25%;
}
.collection-right .collection-heading { order: 2; text-align: right; }
.collection-right .collection-gallery { order: 1; }
.collection-heading { min-width: 0; position: relative; z-index: 2; }
.collection-heading h2 {
  font-family: 'Anton', 'Arial Narrow', sans-serif; font-weight: 400;
  font-size: clamp(62px, 7vw, 108px); line-height: 1.08;
  text-transform: uppercase; letter-spacing: -.025em;
}
.collection-heading h2::after {
  content: ''; display: block; width: 52px; height: 4px; margin-top: 1.1rem;
  background: var(--collection-accent);
}
.collection-right .collection-heading h2::after { margin-left: auto; }
.collection-heading p {
  max-width: 220px; margin-top: 1rem;
  color: var(--collection-muted); font-size: 14px; line-height: 1.8;
}
.collection-right .collection-heading p { margin-left: auto; }
.collection-refined {
  --collection-bg: #122d27; --collection-ink: #fff2d9;
  --collection-muted: #d2ceba; --collection-accent: #d7bb7e;
  --atmosphere-a: #77704a; --atmosphere-b: #3b6653;
}
.collection-refined .collection-heading h2 {
  font-family: 'Instrument Serif', Georgia, serif; font-style: normal;
  text-transform: none; font-size: clamp(54px, 6vw, 96px); letter-spacing: .005em;
  font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'clig' 0;
}
.collection-warm {
  --collection-bg: #f5dbc1; --collection-ink: #52251f;
  --collection-muted: #71463a; --collection-accent: #a43c25;
  --atmosphere-a: #eab087; --atmosphere-b: #d88d74;
}
.collection-clear {
  --collection-bg: #e3edf9; --collection-ink: #18365d;
  --collection-muted: #415c7c; --collection-accent: #2459bd;
  --atmosphere-a: #a5c6e6; --atmosphere-b: #a8b6e6;
}
.collection-atmosphere {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at var(--light-position) 20%, var(--atmosphere-a), transparent 62%),
    radial-gradient(ellipse at 50% 100%, var(--atmosphere-b), transparent 72%), var(--collection-bg);
}
.collection-atmosphere::after {
  content: ''; position: absolute; inset: 0;
  /* Keep the title/control column on a constant, high-contrast colour. */
  background: linear-gradient(90deg, var(--collection-bg) 26%, transparent 55%);
}
.collection-right .collection-atmosphere::after { background: linear-gradient(270deg, var(--collection-bg) 26%, transparent 55%); }
.collection-atmosphere canvas { display: block; width: 100%; height: 100%; opacity: 0; }
.collection-atmosphere canvas.is-ready { opacity: 1; }
.collection-gallery { min-width: 0; position: relative; z-index: 1; }
.collection-stage {
  container-type: inline-size;
  perspective: 1800px;
  padding: clamp(44px, 5.5vw, 100px) 0 34px;
}
.collection-logos {
  --tile-gap: clamp(20px, 1.8vw, 28px);
  --tile-edge: calc((100cqw - 3 * var(--tile-gap)) / 4);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--tile-edge); gap: var(--tile-gap);
  min-height: calc(2 * var(--tile-edge) + var(--tile-gap));
  /* A fixed camera angle. Scrolling never changes the composition. */
  transform: rotateY(calc(var(--tilt-direction) * 22deg))
    rotateX(5deg) rotateZ(calc(var(--tilt-direction) * 3deg));
  transform-origin: center;
  transform-style: preserve-3d;
  /* The tilted grid plane must not intercept clicks above its own cards. */
  pointer-events: none;
}
.logo-tile {
  display: block; position: relative; min-width: 0; width: 100%; aspect-ratio: 1;
  padding: 0; border: 0; border-radius: 0; overflow: hidden;
  background: var(--logo-bg, #fff); cursor: zoom-in;
  pointer-events: auto;
  outline: 2px solid transparent; outline-offset: 3px;
  transform: translate3d(0, var(--tile-offset, 0px), 0);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .1);
  transition: transform .22s ease, outline-color .22s ease, box-shadow .22s ease;
}
.logo-tile[hidden] { display: none; }
.logo-tile:nth-child(4n+2), .logo-tile:nth-child(4n+4) { --tile-offset: -8px; }
.logo-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-tile span {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  padding: 7px 9px; background: #f8f5f0; color: #191714;
  font-size: 10px; font-weight: 600; line-height: 1.4; opacity: 0;
  transition: opacity .18s ease; pointer-events: none;
}
.logo-tile:focus-visible, .logo-tile:hover {
  outline-color: var(--collection-accent);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .18);
}
.logo-tile:focus-visible span, .logo-tile:hover span { opacity: 1; }
/* The lift is smaller than the gutters, keeping neighbouring artwork clear. */
@media (hover: hover) and (pointer: fine) {
  .logo-tile:hover { transform: translate3d(0, var(--tile-offset, 0px), 12px) scale(1.025); }
}
.logo-tile:focus-visible { transform: translate3d(0, var(--tile-offset, 0px), 12px) scale(1.025); }
.collection-controls {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .55rem; margin-top: 1.6rem;
}
.collection-right .collection-controls { align-items: flex-end; }
.collection-controls[hidden] { display: none; }
.collection-controls p { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.collection-pagination { display: flex; align-items: center; gap: 12px; }
.collection-pagination > span { font-size: 12px; font-variant-numeric: tabular-nums; }
.collection-controls button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid currentColor; color: var(--collection-ink);
  border-radius: 50%; cursor: pointer;
}
.collection-controls button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.collection-controls button:disabled { opacity: .35; cursor: default; }
.collection-controls button:focus-visible { outline: 3px solid var(--collection-accent); outline-offset: 3px; }
.collection-controls button:not(:disabled):hover { background: var(--collection-ink); color: var(--collection-bg); }
.logo-cta {
  padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 5vw, 5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--gallery-paper);
}
.logo-cta h2 { font-family: 'Syne', sans-serif; font-size: clamp(34px, 4.3vw, 66px); letter-spacing: -.06em; line-height: 1.05; }
.logo-cta p { max-width: 520px; margin-top: 1.3rem; color: #766252; font-size: 14px; line-height: 1.8; }
.logo-cta .button { background: #bc4e29; color: #fff; white-space: nowrap; min-height: 48px; }
.logo-lightbox {
  position: fixed; inset: 0; margin: auto; width: min(760px, calc(100% - 2rem));
  max-height: calc(100svh - 2rem); overflow: auto;
  padding: 1rem; border: 0; background: #f8f5f0; color: #191714;
}
.logo-lightbox::backdrop { background: rgba(9, 10, 11, .85); }
.lightbox-close {
  display: block; margin: 0 0 .75rem auto; min-height: 44px; padding: .6rem 1rem;
  border: 1px solid #c9c1b7; background: transparent; cursor: pointer; font-size: 12px;
}
.lightbox-art { width: 100%; height: min(65svh, 660px); background: #fff; }
.lightbox-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-lightbox h2 { padding: 1rem 0 .2rem; font-family: 'Syne', sans-serif; font-size: 20px; }
body.logo-lightbox-open { overflow: hidden; }
@media (max-width: 1000px) {
  .logo-collection .collection-atmosphere::after { background: linear-gradient(180deg, var(--collection-bg) 160px, transparent 280px); }
  .logo-collection, .collection-right { grid-template-columns: 1fr; gap: 0; padding: 2rem 4vw; }
  .logo-collection .collection-heading { order: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; }
  .collection-heading h2, .collection-heading > p { grid-column: 1; }
  .collection-heading .collection-controls { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
  .collection-right .collection-heading { grid-template-columns: auto 1fr; }
  .collection-right .collection-heading h2, .collection-right .collection-heading > p { grid-column: 2; }
  .collection-right .collection-heading .collection-controls { grid-column: 1; align-items: flex-start; }
  .logo-collection .collection-gallery { order: 1; }
  .collection-heading h2 { font-size: 72px; }
  .collection-refined .collection-heading h2 { font-size: 72px; }
  .collection-heading h2::after { display: none; }
  .collection-heading > p { margin-top: .5rem; }
  .collection-stage { padding-top: clamp(44px, 7vw, 76px); }
}
@media (max-width: 980px) {
  .logo-orbit { width: 100%; max-width: 580px; height: 560px; justify-self: center; }
}
@media (max-width: 600px) {
  .logo-orbit { height: clamp(380px, 100vw, 480px); }
  .logo-orbit-card { width: clamp(148px, 52%, 224px); border-radius: 18px; }
  .collection-jump { gap: 1.25rem; padding: .4rem 1.1rem; }
  .collection-jump span { display: none; }
  .collection-jump a { font-size: 12px; }
  .logo-collection, .collection-right { padding: 1.6rem 1.1rem; scroll-margin-top: 72px; }
  .collection-heading h2, .collection-refined .collection-heading h2 { font-size: clamp(46px, 12vw, 68px); }
  .collection-heading > p { font-size: 12px; line-height: 1.6; }
  .collection-stage { padding: 24px 0 16px; perspective: 1800px; }
  .collection-logos {
    --tile-gap: 18px; --tile-edge: calc((100cqw - var(--tile-gap)) / 2);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: calc(4 * var(--tile-edge) + 3 * var(--tile-gap));
    transform: scale(.97) rotateY(calc(var(--tilt-direction) * 8deg))
      rotateX(2deg) rotateZ(calc(var(--tilt-direction) * 1deg));
  }
  .logo-tile:nth-child(n) { --tile-offset: 0px; }
  .logo-tile:nth-child(2n) { --tile-offset: -6px; }
  .collection-pagination { gap: 7px; }
  .logo-cta { align-items: flex-start; flex-direction: column; }
  .logo-lightbox { padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-tile, .logo-tile span { transition: none; }
  .logo-tile:hover, .logo-tile:focus-visible { transform: translate3d(0, var(--tile-offset, 0px), 0); }
  .logo-gallery-page { scroll-behavior: auto; }
  html:has(.logo-gallery-page) { scroll-behavior: auto; }
}
