/* ============================================================
   DOCK: the site's navigation, fixed at the bottom of every page,
   with a "Work with me" chip beside it and the booking pop-up the
   chip opens. Shared by the homepage and the inner pages.
   The homepage sets --dock, --dock-ink and the --tile colours for
   its light and dark modes; the fallbacks here serve every other page.
   ============================================================ */
:root { --nav-h: 0px; } /* the top nav bar is gone, so nothing reserves space for it */
body:not(.dash) { padding-bottom: 92px; }
/* pages that end on the dark closing block: let it run to the bottom edge, behind the dock */
body:has(.cta) { padding-bottom: 0; }
body:has(.cta) .cta { padding-bottom: calc(clamp(5rem, 12vw, 9rem) + 64px); }

.dockbar {
  position: fixed; left: 50%; bottom: 18px; z-index: 60;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 20px);
  font-family: var(--font-mono, -apple-system, system-ui, sans-serif); font-size: .74rem;
  transition: opacity .3s ease;
}
.dock {
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: var(--dock, rgba(22, 20, 15, .92)); color: var(--dock-ink, #F4F1E8);
  backdrop-filter: blur(12px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
}
.dock button, .dock a {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-decoration: none;
  padding: .6rem 1rem; border-radius: 999px; white-space: nowrap; opacity: .65;
  transition: opacity .3s ease, background .3s ease;
}
.dock button:hover, .dock a:hover { opacity: 1; }
.dock button[aria-pressed="true"], .dock a[aria-current="page"] {
  opacity: 1; background: color-mix(in srgb, var(--dock-ink, #F4F1E8) 16%, transparent);
}
.dock .dock-home { display: inline-flex; align-items: center; padding: .6rem .85rem; }
.dock-home svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.dockbar .dock-cta {
  font: inherit; text-decoration: none; white-space: nowrap; cursor: pointer;
  padding: calc(.6rem + 5px) 1.15rem; border-radius: 999px;
  background: #B8FF2C; color: #16140F; border: 1px solid #B8FF2C;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .3s ease, border-color .3s ease;
}
.dockbar .dock-cta:hover { color: #16140F; transform: translateY(-2px); background: #fff; border-color: #16140F; }

/* ---------- booking pop-up ---------- */
.cal {
  position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center;
  padding: 18px 14px; background: rgba(18, 17, 16, .5); backdrop-filter: blur(8px);
  font-family: var(--font-mono, -apple-system, system-ui, sans-serif); animation: dockFade .3s ease both;
}
.cal[hidden] { display: none; }
.cal-panel {
  width: min(1040px, 100%); height: min(780px, 100%); display: flex; flex-direction: column; overflow: hidden;
  background: var(--tile, #F4F4F2); border: 1px solid var(--tile-line, #E4E3DE); border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); animation: dockRise .45s cubic-bezier(.2, .7, .2, 1) both;
}
.cal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 14px 12px 22px;
  border-bottom: 1px solid var(--tile-line, #E4E3DE);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tile-dim, #6B6860);
}
.cal-acts { display: flex; align-items: center; gap: .9rem; }
.cal-acts a { color: inherit; text-decoration: none; letter-spacing: .04em; text-transform: none; font-size: .72rem; }
.cal-acts a:hover { color: var(--signal, #E8930C); }
.cal-acts button {
  font: inherit; width: 30px; height: 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--tile-line, #E4E3DE); background: none; color: var(--tile-ink, #16140F);
  transition: background .3s ease, border-color .3s ease;
}
.cal-acts button:hover { background: #B8FF2C; border-color: #B8FF2C; color: #16140F; }
.cal-body { position: relative; flex: 1; min-height: 0; background: #fff; }
.cal-wait { position: absolute; inset: 0; margin: auto; height: max-content; text-align: center; font-size: .78rem; color: #6B6860; }
.cal-body iframe { position: relative; width: 100%; height: 100%; border: 0; display: block; }
@keyframes dockFade { from { opacity: 0; } }
@keyframes dockRise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
body.cal-open { overflow: hidden; }
body.cal-open .dockbar, body.tk-open .dockbar { opacity: 0; pointer-events: none; }

/* phones: the chip sits above the dock so neither is squeezed */
@media (max-width: 640px) {
  .dockbar { flex-direction: column-reverse; font-size: .68rem; bottom: 12px; }
  .dock button, .dock a { padding: .55rem .7rem; }
  .dock-cta { padding: .55rem 1rem; }
  body:not(.dash) { padding-bottom: 128px; }
  body:has(.cta) { padding-bottom: 0; }
  body:has(.cta) .cta { padding-bottom: calc(clamp(5rem, 12vw, 9rem) + 100px); }
}
@media (prefers-reduced-motion: reduce) {
  .cal, .cal-panel { animation: none; }
  .dockbar, .dock-cta { transition: none; }
}
@media print { .dockbar { display: none; } }
