/* ───────── The HUD: one small type system, the same in every place ─────────
   Everything that is UI (name, nav, place index, text blocks, links) uses this.
   It sits over every scene in white with a difference blend, so it reads on ivory and on night. */
:root { --mono: "JetBrains Mono", ui-monospace, Menlo, monospace; }

.hud-top { font-family: var(--mono) !important; font-size: 11px !important; letter-spacing: .08em !important; text-transform: uppercase;
  display: flex !important; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff !important; mix-blend-mode: difference; }
.hud-top .brand { font: 700 12px var(--mono); letter-spacing: .14em; color: #fff; }
.hud-top .brand sup { font-size: 7px; margin-left: 2px; }
.hud-nav { display: flex; gap: 22px; margin-left: auto; }
.hud-nav a { color: #fff; text-decoration: none; opacity: .85; }
.hud-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.hud-top .menu-btn span { background: #fff !important; }
.on-dark .hud-top, .menu-open .hud-top { color: #fff !important; }

.hud { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; pointer-events: none; padding: 0 var(--pad) 16px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; mix-blend-mode: difference; }
.hud-place b { font-weight: 700; }
.hud-prog { width: min(220px, 30vw); height: 1px; background: rgba(255,255,255,.3); }
.hud-prog i { display: block; height: 100%; width: 0; background: #fff; }

/* the one text block: a label, a few lines, and "> a link" */
.hud-block { font: 400 12.5px/1.6 var(--mono); letter-spacing: .02em; max-width: 34ch; color: var(--hud-ink, #fff); }
.hud-block .k { display: block; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.hud-block p { margin: 0 0 10px; text-transform: uppercase; font-size: 11.5px; opacity: .9; }
.hud-block a, .hud-block button { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: inherit;
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; pointer-events: auto; }
.hud-block a::before, .hud-block button::before { content: "> "; }
.hud-block a:hover, .hud-block button:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 800px) {
  .hud-nav { display: none; }
  .hud { padding-bottom: 12px; font-size: 9.5px; }
  .hud-block { font-size: 11px; max-width: none; }
}

/* ───────── The header, in the site's own language (2026-11-15) ─────────
   No inverted white text: frosted ivory pills with a bevelled gold edge (as the "See how it works"
   button), dark ink, so it reads the same on the statue, the castle and every scene. */
.hud-top { mix-blend-mode: normal; color: #2a2118 !important; gap: 12px; align-items: center; padding-top: 18px; }
.hud-top .brand, .hud-nav, .hud-top .menu-btn {
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(255,250,240,.72), rgba(255,250,240,.72)) padding-box,
    linear-gradient(135deg, #8a5f1c, #e9c46f 18%, #fff3c8 26%, #c9953c 44%, #8f6420 60%, #f3d27f 78%, #a9782c) border-box;
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 8px 24px rgba(70,45,15,.16), inset 0 1px 0 rgba(255,255,255,.9);
}
.hud-top .brand { font: 800 13px/1 "Inter Tight", sans-serif; letter-spacing: .16em; color: #2a2118; padding: 11px 16px; border-radius: 999px; }
.hud-top .brand sup { font-size: 8px; }
.hud-nav { gap: 4px; padding: 4px; border-radius: 999px; }
.hud-nav a { color: #2a2118; opacity: 1; font: 600 11px/1 var(--mono); letter-spacing: .1em; padding: 9px 13px; border-radius: 999px; transition: background .2s; }
.hud-nav a:hover { text-decoration: none; background: rgba(201,162,74,.22); }
.hud-top .menu-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-content: center; gap: 5px; padding: 0; }
.hud-top .menu-btn span { width: 16px; height: 1.6px; border-radius: 2px; background: #2a2118 !important; }
.hud-top .menu-btn span:nth-child(2) { display: none; }
.menu-open .hud-top .menu-btn span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.menu-open .hud-top .menu-btn span:nth-child(3) { transform: translateY(-3.3px) rotate(-45deg); }
.on-dark .hud-top, .menu-open .hud-top { color: #2a2118 !important; }
@media (max-width: 800px) { .hud-nav { display: none; } .hud-top { padding-top: 12px; } }
/* the bottom counter too: dark ink with a soft ivory halo instead of inverted white */
.hud { mix-blend-mode: normal; color: #2a2118; text-shadow: 0 0 10px rgba(255,248,232,.9), 0 0 2px rgba(255,248,232,.9); }
.hud .hud-prog { background: rgba(42,33,24,.2); }

/* the hero's three cards (Practice, Automations, Philosophy): frosted ivory with a bevelled gold edge
   and dark ink, as the header and the buttons. (They had white backgrounds with near-white text.) */
.hero .card { color: #2a2118; border-radius: 18px; padding: 20px 22px 22px;
  /* 2026-11-16: the semi-transparent fill let the gold edge gradient wash over the whole card and the text was hard
     to read. Now a near-solid ivory fill over a thin, quieter gold hairline. */
  border: 1px solid rgba(169,120,44,.45);
  background: rgba(255,251,244,.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(70,45,15,.14);
  font-size: 14px; line-height: 1.6; }
.hero .card p:not(.card-k) { color: #1f1811; }
.hero .card .card-k { font: 700 11px var(--mono); letter-spacing: .16em; color: #7a5518; opacity: 1; }

/* ───────── The menu, in the site's language (2026-11-15) ─────────
   Was a dark sheet with light type. Now ivory marble with a warm gold glow, a fine gold frame,
   dark ink items with gold numerals, and gold on hover. */
.menu { color: #2a2118;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(255,236,190,.55), rgba(255,236,190,0) 70%),
    linear-gradient(180deg, rgba(250,244,234,.6), rgba(236,222,198,.75)),
    url(work/marble.jpg) center / 760px, #f4ecdf; }
.menu::before { content: ""; position: absolute; inset: 14px; border: 1.5px solid transparent; border-radius: 22px; pointer-events: none;
  background: linear-gradient(135deg, #8a5f1c, #e9c46f 18%, #fff3c8 26%, #c9953c 44%, #8f6420 60%, #f3d27f 78%, #a9782c) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.menu-open .topbar { color: #2a2118; }
.menu a { color: #2a2118; font-family: "Inter Tight", sans-serif; font-weight: 800; letter-spacing: -.035em; transition: color .3s, opacity .3s; }
.menu a i { font: 700 13px var(--mono); letter-spacing: .12em; color: #a9782c; opacity: 1; }
.menu ul:hover a { opacity: .38; }
.menu ul a:hover { opacity: 1; color: #8a5f1c; }
.menu-foot { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #4a3210; opacity: 1; }
.menu-foot a { color: #8a5f1c; }
.menu .menu-foot a { font: inherit; letter-spacing: inherit; display: inline; color: #8a5f1c; text-decoration: underline; text-underline-offset: 3px; }
.menu-open .hud { opacity: 0; transition: opacity .3s; }

/* ───────── The project panel, in the site's language (2026-11-15) ───────── */
.drawer { color: #2a2118; border-left: 0;
  background:
    linear-gradient(180deg, rgba(252,247,238,.86), rgba(240,228,206,.9)),
    url(work/marble.jpg) center / 700px, #f4ecdf;
  box-shadow: -30px 0 70px -30px rgba(70,45,15,.45); }
.drawer::before { content: ""; position: fixed; top: 0; bottom: 0; width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(180deg, #8a5f1c, #e9c46f 18%, #fff3c8 26%, #c9953c 44%, #8f6420 60%, #f3d27f 78%, #a9782c); }
.drawer-close { color: #2a2118; font-size: 20px; line-height: 1;
  border: 1.5px solid transparent;
  background: linear-gradient(rgba(255,250,240,.82), rgba(255,250,240,.82)) padding-box,
    linear-gradient(135deg, #8a5f1c, #e9c46f 18%, #fff3c8 26%, #c9953c 44%, #8f6420 60%, #f3d27f 78%, #a9782c) border-box;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 18px rgba(70,45,15,.2); }
.drawer-img { padding: 18px 18px 0; }
.drawer-img img { border-radius: 16px; outline: 1.5px solid #c9953c; outline-offset: 3px; box-shadow: 0 16px 40px rgba(70,45,15,.25); }
.drawer-body .label { font: 700 11px var(--mono); letter-spacing: .14em; color: #8a5f1c; }
.drawer-body h3 { font-family: "Inter Tight", sans-serif; font-weight: 800; letter-spacing: -.035em; color: #2a2118; }
.drawer-hook { color: #4a3210; }
.drawer-body > p:not(.label) { color: #4a3d2c; }
.drawer .chips b { color: #2a2118; font: 600 10.5px var(--mono); letter-spacing: .1em; background: rgba(255,250,240,.75); border: 1px solid #c9953c; }
.drawer-target { color: #2a2118 !important; font-weight: 600; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,250,240,.8); border: 1px solid rgba(201,149,60,.6); }
.drawer .btn { color: #2a2118; padding: 14px 22px; border-radius: 999px; font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent;
  background: linear-gradient(rgba(255,250,240,.7), rgba(255,250,240,.7)) padding-box,
    conic-gradient(from var(--shine), #8a5f1c, #e9c46f 12%, #fff3c8 18%, #d9a84a 26%, #8f6420 45%, #c9953c 62%, #fbe3a0 70%, #a9782c 82%, #8a5f1c) border-box;
  box-shadow: 0 10px 30px rgba(90,60,20,.2), 0 0 14px rgba(240,196,100,.35), inset 0 1px 0 rgba(255,255,255,.95);
  animation: ps-shine 5s linear infinite; }
.drawer .btn:hover { animation-duration: 2s; transform: translateY(-1px); }
.drawer-note { color: #4a3d2c; opacity: .8; }

/* ───────── The loader: simple (2026-11-15) ─────────
   Warm ivory, a small black NAYANSI in the centre, a gold hairline that fills, a tiny counter.
   At the end the small name grows into the hero's black title, in its place, as the ivory fades. */
/* the same background as the page behind the hero, so when the loader goes nothing changes but her arriving */
.loader { display: block; padding: 0; background: radial-gradient(120% 90% at 50% 30%, var(--bg-hi) 0%, var(--bg) 45%, var(--bg-lo) 100%) fixed; }
.loader .giant, .loader .giant-inner span { will-change: auto; }
.loader .ld-name { color: var(--ink); transform-origin: 50% 50%; opacity: 0; } /* shown by main.js once it is small and centred, so it never flashes full size at the top */
.loader .loader-row, .loader .loader-bar { position: absolute; left: 50%; width: min(220px, 50vw); translate: -50% 0; }
.loader .loader-bar { top: calc(50% + 34px); height: 1px; background: rgba(13,13,13,.12); }
.loader .loader-bar i { background: linear-gradient(90deg, #a9782c, #e9c46f); }
.loader .loader-row { top: calc(50% + 46px); display: flex; justify-content: space-between; font: 600 10px var(--mono); letter-spacing: .16em; color: #5a4a35; }
/* the menu's one call to action: the same shining gold-bevel button as everywhere else */
.menu .menu-foot a.menu-cta { display: inline-block; font: 700 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: #2a2118; padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  background: linear-gradient(rgba(255,250,240,.75), rgba(255,250,240,.75)) padding-box,
    conic-gradient(from var(--shine), #8a5f1c, #e9c46f 12%, #fff3c8 18%, #d9a84a 26%, #8f6420 45%, #c9953c 62%, #fbe3a0 70%, #a9782c 82%, #8a5f1c) border-box;
  box-shadow: 0 10px 30px rgba(90,60,20,.2), 0 0 14px rgba(240,196,100,.35), inset 0 1px 0 rgba(255,255,255,.95);
  animation: ps-shine 5s linear infinite; transition: transform .2s; }
.menu .menu-foot a.menu-cta:hover { animation-duration: 2s; transform: translateY(-1px); color: #2a2118; }

/* drawer: primary "Build this with me" + secondary "Read the case study" (2026-11-16) */
.drawer-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.drawer-ctas .btn { margin-top: 0; }
.drawer .btn-2 { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px; color: #5a3f14;
  font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(169,120,44,.55); background: rgba(255,250,240,.35); transition: background .25s, border-color .25s, transform .25s; }
.drawer .btn-2 span { transition: transform .25s; }
.drawer .btn-2:hover { background: rgba(255,250,240,.8); border-color: #a9782c; transform: translateY(-1px); }
.drawer .btn-2:hover span { transform: translateX(3px); }
.drawer .btn-2[hidden] { display: none; }
