@font-face {
  font-family: 'BTL Display';
  src: url('/assets/fonts/SpaceGrotesk.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

.btl-site {
  --ink: #110f15;
  --paper: #f7f1ea;
  --muted: #c6bdc9;
  --accent: #d9c1ff;
  --line: #f2e8fc39;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.55 'BTL Display', system-ui, sans-serif;
}

.btl-site *, .btl-site *::before, .btl-site *::after { box-sizing: border-box; }
.btl-site :where(h1, h2, h3, p, figure) { margin: 0; }
.btl-site a { color: inherit; }
.btl-site :focus-visible, .va-team-card a:focus-visible, .va-work-entry:focus-visible { outline: 3px solid #9a72ec; outline-offset: 4px; }
.btl-site [id] { scroll-margin-top: 5.5rem; }
.btl-site h2 { font-size: clamp(2.6rem, 6.15vw, 6.4rem); font-weight: 650; letter-spacing: -.072em; line-height: .95; text-wrap: balance; }
.btl-site h3 { font-size: clamp(1.9rem, 3.7vw, 3.7rem); font-weight: 650; letter-spacing: -.055em; line-height: 1; }
.btl-site em { color: var(--accent); font-style: normal; }
.btl-wrap { width: min(100% - clamp(2rem, 7vw, 6rem), 84rem); margin-inline: auto; min-width: 0; }
.btl-skip { position: fixed; z-index: 20; inset: .65rem auto auto .75rem; transform: translateY(-200%); padding: .68rem; background: #fff; color: #111 !important; }
.btl-skip:focus { transform: none; }

.btl-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid var(--line); background: #110f15f7; }
.btl-header .btl-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 71px; gap: clamp(.65rem, 3vw, 2.8rem); }
.btl-logo { display: flex; align-items: center; gap: .55rem; white-space: nowrap; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.btl-logo img { display: block; }
.btl-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.8rem, 2.4vw, 2.6rem); margin-left: auto; }
.btl-nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.btl-nav a:hover { color: var(--paper); }
.btl-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.15rem;
  border-radius: .26rem;
  background: var(--accent);
  color: #201734 !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btl-button:hover { background: #eee2ff; }
.btl-kicker { color: var(--accent); font-size: .78rem; font-weight: 650; letter-spacing: .075em; line-height: 1.35; }

.btl-hero {
  background: radial-gradient(ellipse at 78% -10%, #34233f, transparent 61%);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(2rem, 4.7vw, 4.5rem);
}
.btl-hero-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .3fr); gap: clamp(1.1rem, 3vw, 3rem); align-items: end; padding-bottom: clamp(1.9rem, 4vw, 3.5rem); }
.btl-hero-copy, .btl-hero-summary { min-width: 0; }
.btl-hero-copy { border-top: 1px solid var(--line); padding-top: 1rem; }
.btl-hero h1 { margin-block: .95rem .08em; font-size: clamp(3.2rem, 9vw, 9.45rem); font-weight: 560; line-height: .86; letter-spacing: -.092em; }
.btl-intro { max-width: 30ch; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.32rem); line-height: 1.5; }
.btl-profile-link { display: inline-flex; min-height: 44px; margin-top: .35rem; align-items: center; gap: .65rem; color: var(--paper); font-size: .9rem; text-underline-offset: .24em; }
.btl-profile-link:hover { color: var(--accent); }
.btl-media {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: .22rem;
  background: #201a2a;
}
.btl-media img { display: block; width: 100%; height: auto; }
.btl-hero .btl-media { border-radius: 0; }
.btl-hero .btl-media img { height: clamp(22rem, 53vw, 42rem); object-fit: cover; object-position: 50% 48%; }
.btl-hero .btl-gallery-trigger { right: max(1rem, calc((100vw - 84rem) / 2)); bottom: 1rem; }
.btl-hero-credit { display: flex; justify-content: space-between; gap: .65rem; padding-block: .37rem; }
.btl-hero-credit a { display: flex; gap: .6rem; align-items: center; min-height: 44px; font-size: .89rem; color: var(--paper); text-decoration: none; }
.btl-hero-credit a:hover { text-decoration: underline; text-underline-offset: .24em; }

.btl-work { --accent: #5a347e; color: #211926; background: #f1ede5; padding-block: clamp(3rem, 8.5vw, 8rem); }
.btl-section-title { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr); align-items: end; gap: 1.15rem 2.7rem; margin-bottom: clamp(1.9rem, 5vw, 4.75rem); }
.btl-section-title p { max-width: 35ch; font-size: clamp(1rem, 1.5vw, 1.28rem); }
.btl-work .btl-section-title h2 { text-wrap: initial; max-width: 11ch; }
.btl-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: clamp(2rem, 6vw, 5.5rem) clamp(1rem, 2.5vw, 2.5rem); }
.btl-case { grid-column: span 7; min-width: 0; border-bottom: 1px solid #d7cad6; }
.btl-case-compact { grid-column: span 5; margin-top: clamp(1rem, 6vw, 5.7rem); }
.btl-case-copy { display: grid; align-content: start; gap: .68rem; padding-block: clamp(1rem, 2vw, 1.85rem); }
.btl-case-copy > p:not(.btl-kicker) { max-width: 52ch; }
.btl-credit { padding-top: .68rem; border-top: 1px solid #d7cad6; font-size: .9rem; color: #51435c; }
.btl-case-lead {
  grid-column: 1 / -1;
  border-top: 1px solid #d7cad6;
}
.btl-case-lead .btl-case-copy { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: .7rem 3rem; }
.btl-case-lead .btl-kicker { grid-column: 1 / -1; }
.btl-case-lead h3 { font-size: clamp(2.3rem, 4.45vw, 4.65rem); text-wrap: balance; }
.btl-case-lead .btl-credit { grid-column: 2; border: 0; padding-top: 0; }
.btl-case-details { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: clamp(.55rem, 1.6vw, 1.6rem); padding-bottom: clamp(1rem, 3vw, 2.5rem); }
.btl-case-details .btl-media img { height: clamp(13rem, 29vw, 29rem); object-fit: cover; }
.btl-case-details .btl-media:only-of-type { grid-column: 1 / -1; }
.btl-case-details .btl-media:last-of-type:nth-of-type(2) { grid-column: span 2; }
.btl-case-space h3 { font-size: clamp(2.45rem, 4.95vw, 5.05rem); }

.btl-artist { padding-block: clamp(3.1rem, 8vw, 7rem); border-bottom: 1px solid var(--line); background: #1e1725; }
.btl-profile { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; gap: clamp(1.6rem, 6vw, 6rem); border-top: 1px solid var(--line); padding-top: 1rem; }
.btl-artist-name h2 { text-wrap: initial; margin-top: 1rem; font-weight: 550; }
.btl-artist-name h2 em { display: block; }
.btl-artist-profile p { color: var(--muted); font-size: 1.08rem; }
.btl-artist-profile ul { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.btl-artist-profile li { padding: .55rem 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--paper); }
.btl-concepts { padding-block: clamp(3rem, 8vw, 7rem); }
.btl-concepts .btl-section-title p, .btl-concept-list article > p:not(.btl-kicker) { color: var(--muted); }
.btl-concept-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.8rem, 4vw, 3.5rem) clamp(1rem, 2vw, 1.8rem); }
.btl-concept-list article { display: grid; align-content: start; min-width: 0; gap: .55rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.btl-concept-list .btl-media { margin-bottom: .55rem; }
.btl-concept-list h3 { font-size: clamp(1.4rem, 2.25vw, 2.15rem); }
.btl-close { color: #1c142a; background: #decaff; }
.btl-close .btl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.65rem; padding-block: clamp(2.8rem, 7vw, 6rem); }
.btl-close h2 { max-width: 15ch; text-wrap: initial; }
.btl-close .btl-button { background: #221a34; color: #fff !important; }
.btl-close .btl-button:hover { background: #392754; }
.btl-close .btl-button:focus-visible { outline-color: #4a2375; }
.btl-footer .btl-wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.4rem 2.1rem; font-size: .9rem; }
.btl-footer a { padding-block: .4rem; text-underline-offset: .25em; }

.btl-gallery-trigger {
  position: absolute;
  right: .48rem;
  bottom: .48rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .45rem .7rem;
  border: 1px solid #fff5;
  border-radius: .3rem;
  background: #17131f;
  color: #fff;
  cursor: pointer;
  font: 650 .8rem/1 'BTL Display', system-ui, sans-serif;
}
.btl-gallery-trigger:hover { background: #362548; }
.btl-gallery-trigger:focus-visible { outline-offset: -3px; }
.btl-gallery {
  width: min(96vw, 89rem);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #191421;
  color: var(--paper);
}
.btl-gallery::backdrop { background: #0b0810e8; }
.btl-gallery-panel { display: grid; padding: clamp(.68rem, 2vw, 1.35rem); gap: .75rem; }
.btl-gallery-header, .btl-gallery-nav { display: flex; gap: .65rem; align-items: center; justify-content: space-between; }
.btl-gallery-header h2 { font-size: clamp(1.12rem, 3vw, 2rem); letter-spacing: -.045em; }
.btl-gallery-position { color: var(--muted); font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.btl-gallery-frame { background: #100e15; }
.btl-gallery-image { display: block; width: 100%; height: min(69dvh, 55rem); object-fit: contain; }
.btl-gallery-control {
  min-height: 44px;
  padding: .6rem .72rem;
  border: 1px solid var(--line);
  border-radius: .3rem;
  background: #231b2e;
  color: var(--paper);
  cursor: pointer;
  font: 650 .9rem/1.1 'BTL Display', system-ui, sans-serif;
  white-space: nowrap;
}
.btl-gallery-control:hover { background: #392951; }
.btl-gallery-control:disabled { cursor: default; opacity: .55; }
.btl-site:has(.btl-gallery[open]) { overflow: hidden; }

.va-team-card, .va-work-entry {
  display: grid;
  min-width: 0;
  gap: .65rem;
  padding: clamp(1.2rem, 3.9vw, 3rem);
  border: 1px solid #dbc7ff60;
  border-radius: .32rem;
  background: #21182b;
  color: #f4edf9;
  text-decoration: none;
}
.va-team-card { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.va-team-card h3, .va-team-card p, .va-team-card .va-entry-label { grid-column: 1; }
.va-team-card a { grid-column: 2; grid-row: 2 / 4; }
.va-work-entry { margin-block-start: 1.2rem; }
.va-work-entry:hover { border-color: #d5bbff; }
.va-team-card h3, .va-work-entry h3 { margin: 0; color: #f9f2ff; font-size: clamp(1.6rem, 3.5vw, 3.3rem); letter-spacing: -.045em; line-height: 1; }
.va-team-card p, .va-work-entry p { margin: 0; color: #d0c2d9; }
.va-entry-label { color: #e0ccff; font-size: .87rem; font-weight: 700; }
.va-team-card .va-entry-link, .va-work-entry .va-entry-link { justify-self: start; display: inline-block; padding-block: .45rem; color: #ead9ff; text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 850px) {
  .btl-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .34fr); }
  .btl-hero h1 { font-size: clamp(3.2rem, 9.2vw, 6.8rem); }
  .btl-section-title, .btl-profile { grid-template-columns: minmax(0, 1fr); }
  .btl-concept-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .btl-header .btl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) max-content; min-height: 64px; }
  .btl-header .btl-button { padding-inline: .72rem; }
  .btl-logo img { width: 30px; height: 30px; }
  .btl-nav { display: none; }
  .btl-hero { padding-top: 1.6rem; }
  .btl-hero-layout, .btl-grid, .btl-case-lead .btl-case-copy, .btl-close .btl-wrap { grid-template-columns: minmax(0, 1fr); }
  .btl-hero .btl-media img { height: auto; }
  .btl-case { grid-column: 1 / -1; }
  .btl-case-compact { margin-top: 0; }
  .btl-case-lead .btl-case-copy { padding-block: 1rem; }
  .btl-case-lead .btl-credit { grid-column: 1; }
  .btl-case-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btl-case-details .btl-media:first-of-type { grid-column: 1 / -1; }
  .btl-case-details .btl-media img { height: auto; }
  .btl-close .btl-button { width: 100%; }
  .va-team-card { grid-template-columns: minmax(0, 1fr); }
  .va-team-card a { grid-column: 1; grid-row: auto; }
}

@media (max-width: 460px) {
  .btl-concept-list { grid-template-columns: minmax(0, 1fr); }
  .btl-hero h1 { font-size: clamp(2.65rem, 10.8vw, 4.1rem); }
  .btl-gallery-image { height: min(59dvh, 55rem); }
}
