/* =========================================================
   500 Studios — a global compendium of motion design studios
   ========================================================= */

:root {
  --paper: #fbfaf7;
  --paper-2: #f1efe8;
  --paper-3: #e9e6dd;
  --ink: #111110;
  --ink-soft: #2f2e2a;
  --muted: #77756d;
  --faint: #a6a39a;
  --line: rgba(17, 17, 16, .14);
  --line-strong: rgba(17, 17, 16, .42);
  --serif: 'Bodoni MT', 'Baskerville Old Face', 'Georgia', 'Times New Roman', serif;
  --sans: 'Arial', 'Helvetica Neue', 'Segoe UI', Helvetica, sans-serif;
  --mono: 'Consolas', 'Space Mono', 'Courier New', monospace;
  --top: 54px;
  --rail: 366px;
  --pad: 46px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------
   Top bar
   --------------------------------------------------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  background: rgba(251, 250, 247, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-badge {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: var(--ink);
  color: var(--paper);
  font: 500 7px/1 var(--mono);
  letter-spacing: .04em;
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  letter-spacing: -.01em;
}
.brand-vol {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .12em;
  color: var(--faint);
  text-transform: uppercase;
  margin-left: 1px;
}
.topbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0;
}
.topbar-nav a:hover { color: var(--ink); }
.topbar-nav a.active { color: var(--ink); }
.topbar-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
}
.nav-index {
  display: none;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-index:hover { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------
   Directory layout
   --------------------------------------------------------- */
.page-directory { overflow: hidden; }
.app {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  height: 100vh;
  padding-top: var(--top);
}

/* Rail */
.rail {
  position: relative;
  z-index: 40;
  height: calc(100vh - var(--top));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.rail-head {
  flex: 0 0 auto;
  padding: 25px 22px 0;
}
.rail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rail-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex: 0 0 auto;
}
.rail-title {
  margin: 13px 0 11px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 43px;
  line-height: .88;
  letter-spacing: -.035em;
}
.rail-title em { font-style: italic; }
.rail-title .rail-vol {
  display: inline-block;
  vertical-align: top;
  margin: 5px 0 0 8px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 7px;
  line-height: 1;
  letter-spacing: .1em;
  color: var(--faint);
  text-transform: uppercase;
}
.rail-lede {
  max-width: 268px;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: -.002em;
  color: var(--muted);
}
.rail-lede em { font-family: var(--serif); font-size: 12px; color: var(--ink-soft); }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 0 7px;
  border-bottom: 1px solid var(--ink);
}
.search svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  color: var(--muted);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: -.005em;
}
.search input::placeholder { color: var(--faint); }
.search kbd {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  color: var(--faint);
  background: transparent;
}
.search .clear-search {
  display: none;
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.search.has-value .clear-search { display: block; }
.search.has-value kbd { display: none; }

.alpha {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 1px;
  margin-top: 11px;
}
.alpha button {
  height: 19px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 19px;
  color: var(--faint);
}
.alpha button.has { color: var(--ink-soft); }
.alpha button:hover { background: var(--paper-2); color: var(--ink); }
.alpha button.active { background: var(--ink); color: var(--paper); }
.alpha button:disabled { opacity: .25; cursor: default; background: none; }

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.random-btn {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.random-btn:hover { color: var(--ink); border-bottom-color: var(--ink); }

.rail-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0 0 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(17,17,16,.25) transparent;
}
.rail-list::-webkit-scrollbar { width: 5px; }
.rail-list::-webkit-scrollbar-track { background: transparent; }
.rail-list::-webkit-scrollbar-thumb { background: rgba(17,17,16,.22); }
.letter-group { position: relative; }
.letter-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 22px 5px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: .1em;
  color: var(--muted);
}
.letter-head .letter-count { font-size: 7px; color: var(--faint); }
.studio-row {
  position: relative;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 7px;
  width: 100%;
  padding: 6.5px 22px 6.5px 22px;
  border: 0;
  border-bottom: 1px solid rgba(17,17,16,.055);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.studio-row:hover { background: var(--paper-2); }
.studio-row.active { background: var(--ink); color: var(--paper); }
.studio-row .row-num {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
  color: var(--faint);
}
.studio-row .row-main {
  display: block;
  min-width: 0;
}
.studio-row .row-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.008em;
}
.studio-row .row-loc {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 6.8px;
  line-height: 1.2;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: var(--muted);
}
.studio-row.active .row-num { color: rgba(251,250,247,.45); }
.studio-row.active .row-loc { color: rgba(251,250,247,.56); }
.studio-row.active .row-name { font-weight: 400; }

.rail-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--faint);
}
.rail-foot a { text-decoration: none; border-bottom: 1px solid transparent; }
.rail-foot a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.rail-close { display: none; }

/* Detail */
.detail {
  position: relative;
  height: calc(100vh - var(--top));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(17,17,16,.25) transparent;
}
.detail::-webkit-scrollbar { width: 7px; }
.detail::-webkit-scrollbar-thumb { background: rgba(17,17,16,.22); }
.detail-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px var(--pad) 80px;
}
.detail-enter { animation: detailIn .48s cubic-bezier(.2,.7,.2,1) both; }
@keyframes detailIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.plate {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.plate b {
  color: var(--ink);
  font-weight: 400;
  font-size: 9px;
}
.detail-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 0 1px;
  margin-right: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.visit-link svg { width: 9px; height: 9px; }
.visit-link:hover { opacity: .6; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn svg { width: 11px; height: 11px; }
.icon-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.icon-btn:disabled { opacity: .25; cursor: default; }

.studio-head { padding: 26px 0 0; }
.studio-title {
  max-width: 15ch;
  margin: 0 0 25px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.35vw, 89px);
  line-height: .91;
  letter-spacing: -.033em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.studio-title.long { font-size: clamp(38px, 5.2vw, 72px); letter-spacing: -.028em; }

.studio-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .55fr);
  gap: 22px;
  padding: 12px 0 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.meta-item { min-width: 0; }
.meta-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.meta-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: -.004em;
  color: var(--ink-soft);
}
.meta-value a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.meta-value a:hover { border-bottom-color: var(--ink); }
.meta-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-links a { text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.meta-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.meta-links .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.description {
  max-width: 72ch;
  margin: 24px 0 33px;
  font-size: 13.5px;
  line-height: 1.68;
  letter-spacing: -.003em;
  color: #3c3b36;
  text-wrap: pretty;
}
.description::first-letter { font-family: var(--serif); font-size: 1.35em; line-height: 0; }

/* Work grid — echoes the asymmetric book layout */
.work-grid {
  display: grid;
  grid-template-columns: 1.08fr .94fr 1.22fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  height: min(56vh, 560px);
  min-height: 380px;
}
.work-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--paper-3);
  cursor: zoom-in;
}
.work-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.work-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.work-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.work-item:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
.work-item:nth-child(5) { grid-column: 1 / 3; grid-row: 3; }
.work-item:nth-child(6) { grid-column: 3; grid-row: 3; }
.work-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.008);
  transition: opacity .55s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.work-item img.loaded { opacity: 1; transform: scale(1); }
.work-item:hover img { transform: scale(1.022); }
.work-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17,17,16,0);
  transition: background .3s ease;
  pointer-events: none;
}
.work-item:hover::after { background: rgba(17,17,16,.06); }
.work-item .fig-no {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.8);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s ease;
}
.work-item:hover .fig-no { opacity: 1; }

.detail-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  margin-top: 42px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}
.next-label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.next-link {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(26px, 3.15vw, 43px);
  line-height: 1;
  letter-spacing: -.025em;
}
.next-link:hover { font-style: italic; }
.back-top {
  border: 0;
  background: none;
  padding: 0 0 3px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.back-top:hover { color: var(--ink); border-bottom-color: var(--ink); }
.colophon {
  margin: 34px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.6;
  letter-spacing: .035em;
  color: var(--faint);
  text-transform: uppercase;
}
.colophon a { text-decoration: none; border-bottom: 1px solid var(--line); }
.colophon a:hover { color: var(--ink); }

/* Empty state */
.empty-state {
  padding: 40px 22px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.empty-state button {
  display: inline-block;
  margin-top: 12px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Backdrop for mobile rail */
.rail-backdrop {
  display: none;
  position: fixed;
  inset: var(--top) 0 0;
  z-index: 35;
  background: rgba(17,17,16,.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ---------------------------------------------------------
   Lightbox
   --------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  background: #0c0c0b;
  color: #f4f2eb;
}
body.lightbox-open .lightbox { display: flex; }
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.lightbox-title {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
.lightbox-count { color: rgba(255,255,255,.4); }
.lightbox-controls { display: flex; gap: 7px; }
.lightbox-btn {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255,255,255,.22);
  background: transparent;
  color: #fff;
}
.lightbox-btn:hover { background: #fff; color: #111; }
.lightbox-btn svg { width: 11px; height: 11px; }
.lightbox-stage {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 22px;
  cursor: zoom-out;
}
.lightbox-stage img {
  display: block;
  max-width: 92vw;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.lightbox-foot {
  padding: 0 20px 15px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Logo wall
   --------------------------------------------------------- */
.page-logos {
  overflow-x: hidden;
}
.logos-main {
  padding-top: var(--top);
}
.logos-hero {
  max-width: 1640px;
  margin: 0 auto;
  padding: 55px var(--pad) 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 44px;
  align-items: end;
}
.logos-hero h1 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(66px, 9.4vw, 150px);
  line-height: .79;
  letter-spacing: -.045em;
}
.logos-hero h1 em { font-style: italic; }
.logos-hero .hero-count {
  display: inline-block;
  vertical-align: top;
  margin: 10px 0 0 14px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--faint);
}
.logos-copy {
  padding-bottom: 7px;
}
.logos-copy p {
  max-width: 390px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.68;
  letter-spacing: -.003em;
  color: #4a4943;
}
.logos-copy p + p {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
}

.logos-toolbar {
  position: sticky;
  top: var(--top);
  z-index: 30;
  background: rgba(251,250,247,.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-toolbar-inner {
  max-width: 1640px;
  margin: 0 auto;
  padding: 9px var(--pad);
  display: flex;
  align-items: center;
  gap: 26px;
}
.logos-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 230px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--ink);
  padding: 5px 0;
}
.logos-search svg { width: 11px; height: 11px; color: var(--muted); }
.logos-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  font-size: 10.5px;
}
.logos-search input::placeholder { color: var(--faint); }
.logos-alpha {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
  flex: 1;
}
.logos-alpha button {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--faint);
  line-height: 1;
}
.logos-alpha button.has { color: var(--ink-soft); }
.logos-alpha button:hover { background: var(--paper-2); color: var(--ink); }
.logos-alpha button.active { background: var(--ink); color: var(--paper); }
.logos-alpha button:disabled { opacity: .22; cursor: default; background: none; }
.logos-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.logos-result {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.captions-toggle {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.captions-toggle:hover { color: var(--ink); border-bottom-color: var(--ink); }

.logos-grid-wrap {
  max-width: 1640px;
  margin: 0 auto;
  padding: 26px var(--pad) 56px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 174px;
  padding: 25px 14px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
  scroll-margin-top: 116px;
}
.logo-card:hover { background: var(--paper-2); }
.logo-card.is-light { background: var(--ink); color: var(--paper); }
.logo-card.is-light:hover { background: #242421; }
.logo-card .logo-no {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .05em;
  color: var(--faint);
}
.logo-card.is-light .logo-no { color: rgba(251,250,247,.36); }
.logo-stage {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-stage img {
  display: block;
  max-width: 104px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logo-card.is-light .logo-stage img { filter: none; }
.logo-letter {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
  opacity: .9;
}
.logo-name {
  display: block;
  max-width: 100%;
  margin-top: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: -.003em;
  text-align: center;
}
.logo-loc {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: var(--faint);
}
.logo-card.is-light .logo-loc { color: rgba(251,250,247,.42); }
.logo-grid.hide-captions .logo-name,
.logo-grid.hide-captions .logo-loc { display: none; }
.logo-grid.hide-captions .logo-card { min-height: 142px; justify-content: center; padding-top: 20px; }
.logo-grid.hide-captions .logo-stage { height: 96px; }

.logos-empty {
  padding: 70px 0;
  font-size: 13px;
  color: var(--muted);
}
.logos-foot {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 var(--pad) 46px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.7;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
}
.logos-foot p { margin: 0; max-width: 520px; }
.logos-foot a { text-decoration: none; border-bottom: 1px solid var(--line); }
.logos-foot a:hover { color: var(--ink); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1280px) {
  :root { --rail: 340px; --pad: 36px; }
  .topbar-center { display: none; }
  .rail-title { font-size: 40px; }
  .studio-title { font-size: clamp(42px, 6.4vw, 78px); }
}

@media (max-width: 1024px) {
  :root { --rail: min(88vw, 370px); --pad: 28px; }
  .page-directory { overflow: hidden; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: fixed;
    top: var(--top);
    bottom: 0;
    left: 0;
    width: var(--rail);
    height: auto;
    z-index: 45;
    transform: translateX(-101%);
    transition: transform .32s cubic-bezier(.2,.7,.2,1);
    box-shadow: 30px 0 80px rgba(17,17,16,.08);
  }
  body.rail-open .rail { transform: translateX(0); }
  body.rail-open .rail-backdrop { display: block; }
  .nav-index { display: inline-flex; }
  .rail-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 17px;
    right: 16px;
    width: 27px;
    height: 27px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
  }
  .rail-close svg { width: 10px; height: 10px; }
  .detail { height: calc(100vh - var(--top)); }
  .detail-inner { padding-top: 24px; }
  .studio-head { padding-top: 22px; }
  .studio-title { font-size: clamp(42px, 8.5vw, 74px); }
  .work-grid { height: min(52vh, 500px); min-height: 340px; }
  .logos-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 42px; }
  .logos-hero h1 { font-size: clamp(64px, 15vw, 118px); }
  .logos-copy p { max-width: 520px; }
  .logos-toolbar-inner { gap: 14px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .logos-search { width: 190px; }
  .logos-alpha { order: 3; flex-basis: 100%; }
  .logos-tools { margin-left: auto; }
}

@media (max-width: 700px) {
  :root { --pad: 18px; --top: 50px; }
  .topbar { padding: 0 14px; }
  .topbar-nav { gap: 14px; }
  .topbar-nav a { font-size: 8px; }
  .brand-name { font-size: 18px; }
  .brand-vol { display: none; }
  .rail-head { padding-top: 22px; }
  .rail-title { font-size: 39px; }
  .rail-lede { max-width: 290px; }
  .rail-foot { display: none; }
  .detail-inner { padding: 18px var(--pad) 54px; }
  .detail-bar { gap: 10px; }
  .visit-link { display: none; }
  .studio-title { font-size: clamp(40px, 13vw, 64px); margin-bottom: 20px; }
  .studio-meta { grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 16px; }
  .studio-meta .meta-item:last-child { display: none; }
  .description { margin-top: 18px; font-size: 13px; line-height: 1.62; }
  .work-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 128px);
    height: auto;
    min-height: 0;
    gap: 6px;
  }
  .work-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .work-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .work-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .work-item:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
  .work-item:nth-child(5) { grid-column: 1; grid-row: 4; }
  .work-item:nth-child(6) { grid-column: 2; grid-row: 4; }
  .detail-foot { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  .back-top { justify-self: start; }
  .colophon { flex-direction: column; gap: 6px; }
  .logos-hero { padding: 38px var(--pad) 22px; }
  .logos-hero h1 { font-size: clamp(60px, 22vw, 92px); }
  .logos-toolbar-inner { padding: 8px var(--pad); }
  .logos-search { width: 100%; flex: 1 1 100%; }
  .logos-tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .logos-grid-wrap { padding-top: 18px; }
  .logo-grid { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
  .logo-card { min-height: 146px; padding: 22px 10px 10px; }
  .logo-stage { height: 66px; }
  .logo-stage img { max-width: 84px; max-height: 46px; }
  .logo-name { font-size: 9px; }
  .logo-loc { font-size: 6px; }
  .logos-foot { flex-direction: column; gap: 14px; }
  .logos-alpha { gap: 0; }
  .logos-alpha button { width: 22px; height: 22px; }
}

@media (max-width: 420px) {
  .topbar-nav a:first-child { display: none; }
  .logos-hero h1 { font-size: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* Print — a clean studio sheet */
@media print {
  .topbar, .rail, .detail-actions, .lightbox, .detail-foot, .colophon { display: none !important; }
  .app { display: block; height: auto; padding-top: 0; }
  .detail { height: auto; overflow: visible; }
  .detail-inner { max-width: none; padding: 0; }
  .work-grid { height: 480px; }
}
