/* Bakers beta — Figma "Bakers Web" frame 127:19219 (1512 × 912), art from "B – Social". */

@font-face { font-family: "STK Bureau Sans"; src: url("fonts/STKBureauSans-Regular-Trial.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Suisse Intl"; src: url("fonts/SuisseIntl-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "BL Oldernew"; src: url("fonts/OlderNew-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #111111;
  --pill: #252525;
  --pill-hover: #303030;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.5);
  --sans: "STK Bureau Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "BL Oldernew", Georgia, serif;
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.64, 1);
  --col: 296px;
  --gap: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font: 400 13px/16px var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ------------------------------------------------------------ shell */
.app {
  height: 100dvh;
  padding: 12px 12px 0;
  display: grid;
  grid-template-columns: var(--col) minmax(0, 1fr) var(--col);
  grid-template-rows: 36px minmax(0, 1fr);
  column-gap: var(--gap);
  row-gap: 20px;
  overflow: hidden;
  max-width: 1920px;
  margin: 0 auto;
}
.bar {
  grid-column: 1 / -1;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: var(--col) minmax(0, 1fr) 144px 144px;
  gap: var(--gap);
}
.bar > .reach-pill { margin-left: -4px; }

.pill {
  position: relative;
  height: 36px;
  border-radius: 32px;
  background: var(--pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color .25s ease, color .25s ease, transform .5s var(--spring);
}
@media (hover: hover) { .pill:hover { background: var(--pill-hover); } }
.pill:active { transform: scale(.97); transition-duration: .12s; }
.pill b { font-weight: 400; transition: transform .45s var(--spring); }
@media (hover: hover) { .pill:hover b { transform: translateX(3px); } }

.logo-pill { justify-content: flex-start; padding-left: 14px; gap: 0; font: 600 19.263px/18.469px "Suisse Intl", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.5779px; }
.wm-sq { display: inline-block; width: 0; height: 9px; margin: 0; background: #fff; border-radius: 1px; align-self: center; transform: translateY(1px); }
.works-pill { justify-content: flex-start; padding: 0 12px; gap: 8px; }
.wp-meta { color: var(--muted); }
.reach-pill { background: #fff; color: #000; margin-left: -4px; }
@media (hover: hover) { .reach-pill:hover { background: #e9e9e9; } }
.price-pill[aria-expanded="true"] { background: #3a3a3a; }

/* Reach-out panel: grows from the pill's corner. */
.reach {
  position: absolute;
  right: 0;
  top: 44px;
  width: 296px;
  padding: 6px;
  border-radius: 22px;
  background: #1d1d1d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  transform-origin: 100% 0;
}
.reach-row { display: flex; width: 100%; justify-content: space-between; align-items: center; height: 40px; padding: 0 12px; border-radius: 16px; transition: background-color .2s ease; }
@media (hover: hover) { .reach-row:hover { background: #2a2a2a; } }

/* ------------------------------------------------------------ columns */
.col { min-height: 0; }
.col-c, .col-r, .col-l {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.col::-webkit-scrollbar { display: none; }
.col-l { padding-bottom: 24px; }
.col-l p + p { margin-top: 16px; }
.pane[hidden] { display: none; }
.rows { list-style: none; margin: 24px 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; height: 24px; }
.cta { margin-top: 32px; background: #fff; color: #000; width: 100%; }
@media (hover: hover) { .cta:hover { background: #e9e9e9; } }

/* Content scrolls up under the bar through a black fade instead of a hard edge. */
.col-c, .col-r, .col-l { --ft: 0px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft), #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft), #000 calc(100% - 28px), transparent 100%); }
.col.is-scrolled { --ft: 16px; }
.col-c { display: flex; flex-direction: column; gap: 11px; padding: 0 0 40vh; }
.col-r { padding-bottom: 40vh; }

/* ------------------------------------------------------------ card (authored at 870 × 605, scaled by --s) */
.card {
  --s: 1;
  position: relative;
  display: block;
  flex: none;
  aspect-ratio: 870 / 605;
  border-radius: calc(32px * var(--s));
  overflow: hidden;
  background: var(--tone, #1c1c1c);
  isolation: isolate;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.card-bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(calc(34px * var(--s))) saturate(1.25);
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08);
  will-change: transform;
}
.stage { position: absolute; left: 0; top: 0; width: 870px; height: 605px; transform: scale(var(--s)); transform-origin: 0 0; }
.shot {
  position: absolute;
  top: 124px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, .12);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .45);
  transition: transform .7s var(--spring);
  transform: translate3d(var(--x, 0px), 0, 0) rotate(0deg);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .shot[data-side="-1"] { transform: translate3d(calc(var(--x, 0px) - 14px), 6px, 0) rotate(-2deg); }
  .card:hover .shot[data-side="1"] { transform: translate3d(calc(var(--x, 0px) + 14px), 6px, 0) rotate(2deg); }
  .card:hover .shot[data-side="0"] { transform: translate3d(var(--x, 0px), -6px, 0) scale(1.025); }
}
.card.is-press .stage { transform: scale(var(--s)) scale(.985); transition: transform .12s ease; }
.card .stage { transition: transform .6s var(--spring); }

/* Caption on a functional blur that fades in from the top — no box edge. */
.glass {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 498px;
  height: 188px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image: radial-gradient(120% 100% at 0% 100%, #000 45%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 0% 100%, #000 45%, transparent 100%);
}
.cap {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: grid;
  gap: 2px;
  font-size: 13px;
  line-height: 16px;
  color: #fff;
  white-space: nowrap;
}
.card[data-ink="dark"] .cap { color: #000; }
.cap span:last-child { opacity: .5; }
/* Captions stay readable when the card is narrow (never below 80% size). */
.cap { transform: scale(calc(max(var(--s), .8) / var(--s))); transform-origin: 0 100%; }

/* Cursor pill that follows the pointer inside a card. */
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  height: 32px;
  padding: 0 14px;
  display: flex; align-items: center; gap: 6px;
  border-radius: 32px;
  background: #fff; color: #000;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0) scale(0);
  transition: opacity .2s ease;
  white-space: nowrap;
}

/* ------------------------------------------------------------ right column */
.quote { position: relative; margin: 0; min-height: 156px; }
.q-who { position: relative; padding-left: 36px; min-height: 32px; }
.q-av { position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #2a2a2a; display: grid; place-items: center; font-size: 11px; }
.q-av img { width: 100%; height: 100%; object-fit: cover; }
.q-who > span:not(.q-av) { display: block; }
.q-text { margin: 16px 0 0; font: 400 15px/18px var(--serif); letter-spacing: -0.15px; }

.index { position: relative; list-style: none; margin: 40px 0 0; padding: 0; }
.index li { position: relative; z-index: 1; display: flex; justify-content: space-between; height: 24px; align-items: flex-start; }
.index li .yr { color: var(--muted); }
.index li.off { color: var(--muted); }
.index li[data-slug] { cursor: pointer; }
.index-pill {
  position: absolute !important;
  z-index: 0 !important;
  left: -8px; right: -8px; top: -4px;
  height: 24px !important;
  border-radius: 12px;
  background: var(--pill);
  transform: translate3d(0, var(--y, 0px), 0);
  transition: transform .55s var(--spring), opacity .3s ease;
  opacity: 0;
  pointer-events: none;
}
.index.has-active .index-pill { opacity: 1; }

/* ------------------------------------------------------------ text reveals (masks) */
.ln { display: block; overflow: hidden; }
.ln > span { display: block; white-space: nowrap; }

/* ------------------------------------------------------------ case view */
.case { position: fixed; z-index: 30; border-radius: 32px; overflow: hidden; background: #161616; }
.case[hidden] { display: none; }
.case-bg { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(60px) saturate(1.2) brightness(.45); transform: scale(1.1); }
.case-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 0 24px 48px; }
.case-scroll::-webkit-scrollbar { display: none; }
.case-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 20px 0 28px; }
.case-head::before { content: ""; position: absolute; inset: 0 -24px -20px; z-index: -1; background: linear-gradient(to bottom, rgba(17,17,17,.85), rgba(17,17,17,0)); }
.case-title { display: grid; gap: 2px; }
.case-close { padding: 0 18px; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.case-grid { display: flex; gap: 16px; align-items: flex-start; }
.case-colm { flex: 1; display: grid; gap: 16px; min-width: 0; }
.case-shot { border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.04); }
.case-shot img { width: 100%; height: auto; }

/* ------------------------------------------------------------ load states */
.is-loading .bar > .pill, .is-loading .col-l .about p, .is-loading .quote, .is-loading .index li:not(.index-pill), .is-loading .card { visibility: hidden; }

/* ------------------------------------------------------------ narrower than desktop: one page scroll */
@media (max-width: 1099px) {
  html, body { height: auto; }
  .app { display: block; height: auto; padding: 12px 12px 120px; overflow: visible; }
  .bar { position: sticky; top: 12px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .bar::before { content: ""; position: absolute; inset: -12px -12px -28px; z-index: -1; background: linear-gradient(to bottom, var(--bg) 55%, rgba(17,17,17,0)); pointer-events: none; }
  .bar .works-pill { display: none; }
  .price-pill, .reach-pill { padding: 0 18px; }
  .reach-pill { margin-left: 0; }
  .col-l, .col-c, .col-r { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .col-l { margin-top: 20px; max-width: 52ch; padding-bottom: 0; }
  .col-c { margin-top: 28px; padding: 0; }
  .col-r { margin-top: 40px; padding: 0; max-width: 420px; }
  .case { border-radius: 24px; }
}
@media (max-width: 640px) {
  .bar { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); grid-template-columns: minmax(0, 1fr) auto auto; }
  .bar::before { display: none; }
  .app::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(to top, #000 20%, rgba(0,0,0,0)); pointer-events: none; z-index: 15; }
  .reach { top: auto; bottom: 44px; width: calc(100vw - 24px); transform-origin: 100% 100%; }
  .col-l { margin-top: 4px; }
  .case-scroll { padding: 0 14px 40px; }
  .case-grid { flex-direction: column; }
}

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