/* LLL — the header bar (☰ shortcut · selected works · let's talk) and its
   shortcut panel, shared by every page (client, 2026-11-16: "the bar on
   every page, so one can always go back"). Moved here unchanged from
   dial.css; loaded right after each page's own stylesheet. */

/* Header (client, 2026-11-13): part of the painting — a band of the plate,
   lightly darkened, ending in one straight cut with a light edge and a soft
   shadow under it (client: a straight line, not an arc; "a shadow under it
   looks cleaner"). Spans the picture's width (dial.js, placeHead). One line:
   menu left, the two links right, clear of the sound button (--head-right). */
.head {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  --s: .185;
  --head-right: 16px;
  font: 500 clamp(12.5px, calc(var(--s) * 68px), 15px)/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
  height: calc(64px + env(safe-area-inset-top));
  background: linear-gradient(rgba(11,10,9,.36), rgba(11,10,9,.18));
  box-shadow: 0 10px 22px -6px rgba(0,0,0,.5);   /* a soft shadow on the plate — no line (client) */
}
.head button, .head a {
  pointer-events: auto;
  font: inherit;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: var(--cur-hand, pointer);
  -webkit-tap-highlight-color: transparent;
}
.head-row {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  right: var(--head-right);
  top: calc(12px + env(safe-area-inset-top));
  height: 44px;               /* the sound button's height: one line with it */
  display: grid;
  grid-template-columns: auto 1fr auto;   /* the pages centred between the shortcut and "let's talk": the same gap either side (client) */
  align-items: center;
  gap: .85em;
}
/* Quiet until pointed at (client, after girlinbluestudios.com). */
.head-menu, .head-link {
  opacity: .55;   /* client: quiet at first, clear only when pointed at */
  transition: opacity .2s ease;
}
.head-menu:hover, .head-link:hover, .head-menu:focus-visible, .head-link:focus-visible,
.head-menu[aria-expanded="true"] { opacity: 1; }
.head-menu { justify-self: start; display: flex; align-items: center; gap: .55em; height: 44px; white-space: nowrap; }
.head-burger { display: grid; gap: 4px; width: 17px; }
.head-burger i { display: block; height: 1.5px; background: currentColor; box-shadow: 0 1px 4px rgba(0,0,0,.45); transition: transform .25s ease, opacity .2s ease; }
.head-menu[aria-expanded="true"] .head-burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.head-menu[aria-expanded="true"] .head-burger i:nth-child(2) { opacity: 0; }
.head-menu[aria-expanded="true"] .head-burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.head-link { display: flex; align-items: center; height: 44px; white-space: nowrap; }
/* Every page, always in the bar (client, 2026-11-16: "everything is always
   there, no searching"): home · selected works; the one you are on stays
   bright. */
.head-nav { justify-self: center; display: flex; align-items: center; gap: 1.5em; }
/* The three quiet labels a touch smaller, easier to read (client). */
.head .head-menu, .head-nav { font-size: .92em; }
.head-link[aria-current="page"] { opacity: 1; }
/* "let's talk": a button like her references, made of the sky behind it,
   only lighter (client: not red — red reads as a warning). */
.head .head-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  white-space: nowrap;
  /* A window onto the painting itself, only lighter — no blur, no
     picture of its own (client): when the mechanism turns under it, its cut
     line and the next plate show through the button too. */
  background: rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 14px rgba(0,0,0,.22);
  transition: background .2s ease, transform .1s ease;
}
.head .head-cta:hover { background: rgba(255, 255, 255, .34); }
.head .head-cta:active { transform: translateY(1px); }
/* No box and no underline round a pressed item (client). Focus shows only
   as full brightness. */
.head button:focus, .head a:focus { outline: none; }
.head-menu:focus-visible, .head-link:focus-visible { opacity: 1; }
.head .head-cta:focus-visible { background: rgba(255, 255, 255, .34); }
.head-panel button:focus-visible { background: rgba(0,0,0,.26); }

/* Shortcut panel: a piece of the plate on show (its sky, or FAITH's stone)
   under the band; the plate on show is marked. */
.head-panel {
  position: absolute;
  left: max(10px, env(safe-area-inset-left));
  top: calc(72px + env(safe-area-inset-top));
  width: min(300px, calc(100% - 20px));
  pointer-events: auto;
  padding: 6px;
  border-radius: 14px;
  background: #3f7fc4 center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 12px 30px rgba(0,0,0,.3);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .25s ease;
}
/* Cloud-free sky of the plate on show, a shade darker so the type reads;
   FAITH: her burgundy drapery. Never enlarged, never blurred
   (scripts/export-shortcut-bg.py). */
/* WORRY and HOPE: the client's own sky ground (assets/8-shortcut-sky.webp). */
.head-panel[data-plate="0"], .head-panel[data-plate="1"] { background-image: linear-gradient(rgba(8,18,40,.16), rgba(8,18,40,.16)), url("../media/dial/shortcut-sky.webp?v=1"); }   /* a touch darker (client) */
/* WORRY and HOPE: a little darker still, with a soft shadow behind for depth (client). */
.head-panel[data-plate="0"], .head-panel[data-plate="1"] {
  background-image: linear-gradient(rgba(8,18,40,.25), rgba(8,18,40,.25)), url("../media/dial/shortcut-sky.webp?v=1");
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 22px 50px rgba(0,0,0,.45), 0 6px 14px rgba(0,0,0,.28);
}
/* FAITH: her brown ground at 87 % opacity — the hall shows faintly through
   (client, 2026-11-14). The picture sits on ::before so only it fades. */
.head-panel { isolation: isolate; }
.head-panel[data-plate="2"] { background: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.35), 0 34px 72px rgba(0,0,0,.62), 0 12px 24px rgba(0,0,0,.4), 0 2px 5px rgba(0,0,0,.3); }   /* a soft shadow behind it: depth (client) */
.head-panel[data-plate="2"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url("../media/dial/shortcut-faith-stone.webp?v=1") center / cover no-repeat;
  opacity: .87;
}
.head-panel[data-plate="3"] { background-image: linear-gradient(rgba(8,18,40,.24), rgba(8,18,40,.24)), url("../media/dial/shortcut-5-heaven-2.webp?v=2"); }
.head-panel[hidden] { display: block; visibility: hidden; }
.head-panel.is-open { opacity: 1; transform: none; visibility: visible; }
.head-panel ol { margin: 0 0 .55em; padding: 0; list-style: none; }   /* as much room under IV as over the title (client) */
/* Back to Instrument Serif italic (client, after trying her hand lettering). */
.head-panel-title {
  margin: .66em .7em .5em;   /* measured: the title stands exactly midway between the panel's top and WORRY */
  font: italic 400 1.45em/1.1 "Instrument Serif", Georgia, "Times New Roman", serif;
  letter-spacing: .005em;
}
.head-panel button {
  display: grid;
  grid-template-columns: 2.1em 1fr;
  align-items: center;   /* the numeral midway between the stage and its line */
  width: 100%;
  padding: .5em .8em;
  border-radius: 9px;
  text-align: left;
  transition: background .2s ease;
}
.head-panel button:hover { background: rgba(0,0,0,.26); }   /* darker under the pointer: the type stands out */
.head-panel span { display: grid; gap: .12em; font-size: .92em; letter-spacing: .16em; text-transform: uppercase; }
.head-panel small { font-size: .9em; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.25; opacity: .9; }
.head-panel small b { font-weight: 800; opacity: 1; }
/* The four stages numbered like commandments, in Roman numerals. */
.head-panel i { font: 400 1.3em/1 "Instrument Serif", Georgia, "Times New Roman", serif; font-style: normal; opacity: .8; translate: 0 -.09em; }   /* ink centred on the two lines */
.head-panel button[aria-current="step"] { background: rgba(0,0,0,.16); }

/* ─── Footer links (client, 2026-11-19): Instagram · LinkedIn · Join us,
   pinned to the very bottom of every page. They lie on a soft darkening of
   the painting's lower edge, so the moving cut lines of the plates no longer
   cross clear type (client: "they still collide with the cuts", "a touch
   more visible"). Nothing blurred. Laptop: on the left wall (wide.css). ── */
.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: calc(48px + env(safe-area-inset-bottom));
  padding-bottom: calc(1px + env(safe-area-inset-bottom));   /* as low as it goes (client: still touched the cut ring) */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  pointer-events: none;   /* only the links take a tap; the sound key stays free */
  background: linear-gradient(rgba(11, 10, 9, 0), rgba(11, 10, 9, .55));
  font: 400 11.5px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;   /* smaller again, but brighter than before (client) */
  letter-spacing: .04em;
  white-space: nowrap;
}
.foot a {
  pointer-events: auto;
  padding: 7px 0;
  color: rgba(244, 241, 236, .82);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  transition: color .2s ease;
}
.foot a:hover, .foot a:focus-visible { color: #f4f1ec; outline: none; }
/* Instagram · LinkedIn bottom left, Join us bottom right (left of the
   sound key where there is one) — out of the middle, under the dial, into
   the picture's corners (client, 2026-11-19: "they still run into the
   mechanism"). Phone and upright tablet: the painting's own edges
   (foot.js). Laptop (client, 2026-11-20: "adjust them automatically"): her
   wide painting fills the screen, so the screen's corners, in line with the
   bar above (wide.css). */
.foot {
  box-sizing: border-box;
  left: var(--pic-l, 0px);   /* the picture's own edges (foot.js) */
  right: auto;
  width: var(--pic-w, 100%);
  justify-content: flex-start;
  gap: 12px;                                                  /* LinkedIn closer to Instagram (client) */
  padding-bottom: calc(7px + env(safe-area-inset-bottom));    /* a touch up from the very edge (client) */
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
}
.foot a:last-child { margin-left: auto; }
/* The company line and the privacy policy (client, 2026-11-21: "small,
   the agency with the English short form and Privacy", like Girl in Blue's
   "… LTD 2026"). Phone and upright tablet: Instagram · LinkedIn left, Join
   us in the right corner (nothing under the dial — client: "Join us sits
   right under the mechanism"), and this line small just above Join us,
   right-aligned. Laptop: centred under the dial. */
.foot .foot-legal {
  position: absolute;
  right: var(--legal-r, calc(16px + env(safe-area-inset-right)));
  bottom: calc(29px + env(safe-area-inset-bottom));
  font-size: 8px;
  line-height: 1.4;
  white-space: pre;
  color: rgba(244, 241, 236, .5);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
body:has(.sound:not([hidden])) .foot .foot-legal { --legal-r: calc(var(--snd, 68px) + env(safe-area-inset-right)); }
.foot .foot-legal a { padding: 0; margin-left: 0; color: inherit; }   /* not the Join us rule (.foot a:last-child) */
.foot .foot-legal a:hover, .foot .foot-legal a:focus-visible { color: #f4f1ec; }
.foot .foot-legal { display: none; }       /* the phone: none (client: "it only gets in the way there") */
@media (min-aspect-ratio: 4/3) and (min-height: 600px) {
  .foot .foot-legal { display: block; right: auto; left: 50%; bottom: calc(27px + env(safe-area-inset-bottom)); translate: -50% 0; font-size: 10px; }
}
body:has(.sound:not([hidden])) .foot { padding-right: calc(var(--snd, 68px) + env(safe-area-inset-right)); }   /* 12 + 44 key + 12, if the key stands on the picture (foot.js) */
/* The sound switch on the pages other than home (client, 2026-11-20:
   "everywhere, right of Join us"): home's key (dial.css), over everything. */
body > .sound {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom));
  right: calc(12px + env(safe-area-inset-right));
  z-index: 6;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11,10,9,.38);   /* no blur anywhere (client) */
  color: #f4f1ec;
  cursor: var(--cur-hand, pointer);
}
body > .sound[hidden] { display: none; }
body > .sound svg { width: 20px; height: 20px; }
body > .sound .sound-mute { display: none; }
body > .sound.is-off .sound-waves { display: none; }
body > .sound.is-off .sound-mute { display: inline; }
body > .sound:focus-visible { outline: 2px solid #f4f1ec; outline-offset: 2px; }
/* Laptop (client, 2026-11-20: "more room here, so larger type, top and
   bottom, after girlinbluestudios.com"; "the links at the bottom a little
   higher than on the phone"). Measured there at 1440 × 900: the bar's links
   16 px, the footer's 12 px Poppins (large-eyed) 26 px off the bottom. Here
   the bar's links ~16 px, the footer 14 px, its line midway up the sound
   key (34 px off the bottom). */
@media (min-aspect-ratio: 4/3) and (min-height: 600px) {
  .head, .works .head { font-size: clamp(16px, 1.2vw, 20px); }   /* the same on every page (client: smaller on Selected works) */
  .head .head-cta { height: 40px; padding: 0 18px; border-radius: 10px; }
  .head-burger { width: 19px; gap: 5px; }
  .head-menu[aria-expanded="true"] .head-burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .head-menu[aria-expanded="true"] .head-burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  /* The shortcut panel grows with the larger type (client: "too narrow, it
     cuts the text on the right"), with a little more room under IV so the
     list sits centred in it. */
  .head-panel { left: max(20px, env(safe-area-inset-left)); top: calc(76px + env(safe-area-inset-top)); width: min(420px, calc(100% - 40px)); padding: 8px 8px 10px; }
  .head-panel ol { margin-bottom: .9em; }
  .foot {
    height: calc(84px + env(safe-area-inset-bottom));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    padding-left: max(28px, env(safe-area-inset-left));
    gap: 22px;
    font-size: 14px;
  }
  body:not(:has(.sound:not([hidden]))) .foot { padding-right: max(28px, env(safe-area-inset-right)); }
}
