/* The top bar, the same on every page of the site (11 Nov 2026: the pages other than the homepage still had the old
   one, so the bar changed when you opened "Our story" and changed back at home). A glass capsule that stays at the top:
   night over a dark part of the page, light over a light part (.bar.light); the mark glows, the name and its tagline
   beside it; links on a wide screen, a menu on a phone; a thread of light under it shows how far down the page you are
   (--prog). index.html drives it itself (with future.js); the other pages load bar.js.
   It carries its own colours and type, and its names are its own, so it sits on a roju.css page without clashing. */
.bar { --star: #EEF2FB; --star-dim: #C3CDE0; --gold: #E8BE73; --ink: #0E1B30;
  --f-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-te: "Anek Telugu", "Noto Sans Telugu", "Hanken Grotesk", sans-serif;
  font: 400 17px/1.5 var(--f-body); -webkit-font-smoothing: antialiased;
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 0; pointer-events: none; }
.bar-in { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 8px; max-width: 1184px; margin: 0 auto; min-height: 64px;
  padding: 7px 7px 7px 12px; border-radius: 999px; color: var(--star);
  background: rgba(8, 18, 40, .62); border: 1px solid rgba(238, 242, 251, .13);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 60px -24px rgba(0, 0, 0, .7);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, color .35s ease, min-height .3s ease; }
.bar.scrolled .bar-in { min-height: 58px; background: rgba(8, 18, 40, .8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 70px -20px rgba(0, 0, 0, .7); }
.bar.light .bar-in { color: var(--ink); background: rgba(255, 255, 255, .78); border-color: rgba(14, 27, 48, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 50px -22px rgba(60, 40, 10, .35); }
.bar-logo { display: inline-flex; align-items: center; gap: 11px; min-height: 48px; color: inherit; text-decoration: none; flex: none; }
.bar .logo-mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.bar .logo-mark::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 190, 115, .42), rgba(232, 190, 115, 0)); }
.bar .logo-mark svg { position: relative; width: 38px; height: 38px; }
html.anim .bar .logo-mark::before { animation: markGlow 4.5s ease-in-out infinite alternate; }
@keyframes markGlow { from { opacity: .5; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }
.bar .lw { display: grid; gap: 4px; }
.bar .lw-1 { display: inline-flex; align-items: baseline; gap: 10px; }
.bar .lw-1 b { font: 700 22px/1 var(--f-display); letter-spacing: -.02em; }
.bar .lw-1 .te { font: 400 17px/1 var(--f-te); color: var(--star-dim); }
.bar .lt { font: 500 13px/1.15 var(--f-body); color: var(--star-dim); white-space: nowrap; }
.bar.light .lw-1 .te, .bar.light .lt { color: #3D4963; }
.bar-links, .bar-signin { display: none; }
.bar-cta { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
  min-height: 48px; padding: 0 18px; border: 2px solid transparent; border-radius: 999px; font: 700 15px/1.2 var(--f-body); white-space: nowrap;
  text-decoration: none; cursor: pointer; background: linear-gradient(180deg, #FFA79E, #E0605A); color: #2A0705;
  box-shadow: 0 10px 30px rgba(255, 138, 128, .3), inset 0 1px 0 rgba(255, 255, 255, .45); transition: box-shadow .25s ease; }
.bar-cta:hover { background: linear-gradient(180deg, #FFB4AC, #E86A63); box-shadow: 0 14px 40px rgba(255, 138, 128, .42), inset 0 1px 0 rgba(255, 255, 255, .5); }
.bar-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 999px; cursor: pointer; color: inherit;
  border: 1px solid rgba(238, 242, 251, .2); background: rgba(238, 242, 251, .06); }
.bar-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bar-btn .x, .bar-btn[aria-expanded="true"] .bars { display: none; }
.bar-btn[aria-expanded="true"] .x { display: block; }
.bar.light .bar-btn { border-color: rgba(14, 27, 48, .18); background: rgba(255, 255, 255, .6); }
.bar-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: grid; gap: 2px; padding: 10px; border-radius: 22px; color: var(--star);
  background: rgba(11, 26, 51, .99); border: 1px solid rgba(238, 242, 251, .14); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.bar-menu[hidden] { display: none; }
.bar-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px; color: var(--star); font-weight: 600; text-decoration: none; }
.bar-menu a:hover, .bar-menu a:focus-visible { background: rgba(238, 242, 251, .08); }
.bar-menu hr { border: 0; height: 1px; margin: 6px 4px; background: rgba(238, 242, 251, .12); }
/* a narrow phone: the tagline while the opening's own button is in view; the bar's button once it isn't */
@media (max-width: 429px) {
  .bar-cta { display: none; }
  .bar.past .bar-cta { display: inline-flex; padding: 0 14px; }
  .bar.past .lt { display: none; }
  .bar .logo-mark { width: 34px; height: 34px; } .bar .logo-mark svg { width: 32px; height: 32px; }
  .bar .lw-1 b { font-size: 20px; } .bar .lw-1 .te { font-size: 15px; }
  .bar-logo { gap: 9px; }
  .bar-btn { margin-left: auto; }
  .bar.past .bar-btn { margin-left: 0; }
}
@media (min-width: 1200px) {
  .bar { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
  .bar-in { gap: 22px; padding: 8px 8px 8px 16px; }
  .bar-links { display: flex; gap: 24px; margin-left: auto; }
  .bar-links a { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0; color: var(--star-dim); font-size: 16px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
  .bar-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 8px; height: 1.5px; background: var(--gold); transition: right .25s ease; }
  .bar-links a:hover { color: var(--star); } .bar-links a:hover::after { right: 0; }
  .bar.light .bar-links a { color: #3D4963; } .bar.light .bar-links a:hover { color: var(--ink); } .bar.light .bar-links a::after { background: #B8690C; }
  .bar-signin { display: inline-flex; align-items: center; min-height: 48px; color: var(--star-dim); font-size: 16px; font-weight: 600; text-decoration: none; }
  .bar-signin:hover { color: var(--star); } .bar.light .bar-signin { color: #3D4963; } .bar.light .bar-signin:hover { color: var(--ink); }
  .bar-cta { margin-left: 0; }
  .bar-btn, .bar-menu { display: none !important; }
}
.bar-links a[aria-current="page"] { color: var(--star); } .bar.light .bar-links a[aria-current="page"] { color: var(--ink); }
.bar-menu a[aria-current="page"] { background: rgba(238, 242, 251, .08); }
.bar *, .bar *::before, .bar *::after { box-sizing: border-box; }
/* a thread of light under the bar: how far down the page you are */
.bar-in::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, #E8BE73, #6CD3C1 62%, #B9A6FF); transform-origin: left; transform: scaleX(var(--prog, 0));
  box-shadow: 0 0 10px rgba(108, 211, 193, .55); opacity: .95; }
/* the pages other than the homepage: their dark opening starts under the bar, so it makes room for it */
body:not(.home) main > .doc-hero:first-child { padding-top: 136px; }
@media (min-width: 900px) { body:not(.home) main > .doc-hero:first-child { padding-top: 172px; } }
