/* The site's header (NAYANSI pill, gold nav pills, round menu button) and its full-screen ivory
   marble menu, for pages other than the homepage (the case studies). Self-contained copy of the
   homepage's final look (style.css + hud.css); site-header.js injects the markup.
   If the homepage header changes, change it here too. */
@property --shine { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sh-shine { to { --shine: 360deg; } }

.sh-top, .sh-menu { --sh-pad: clamp(16px, 2.2vw, 32px); --sh-mono: "JetBrains Mono", ui-monospace, Menlo, monospace; --sh-ink: #2a2118;
  --sh-bevel: linear-gradient(135deg, #8a5f1c, #e9c46f 18%, #fff3c8 26%, #c9953c 44%, #8f6420 60%, #f3d27f 78%, #a9782c); }

/* ── header ── */
.sh-top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px var(--sh-pad) 0; pointer-events: none; }
.sh-top > * { pointer-events: auto; }
.sh-top .sh-brand, .sh-nav, .sh-btn {
  border: 1.5px solid transparent;
  background: linear-gradient(rgba(255,250,240,.72), rgba(255,250,240,.72)) padding-box, var(--sh-bevel) 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); }
.sh-brand { font: 800 13px/1 "Inter Tight", sans-serif; letter-spacing: .16em; color: var(--sh-ink); padding: 11px 16px; border-radius: 999px; text-decoration: none; }
.sh-brand sup { font-size: 8px; margin-left: 2px; }
.sh-nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; margin-left: auto; }
.sh-nav a { color: var(--sh-ink); font: 600 11px/1 var(--sh-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 9px 13px; border-radius: 999px; transition: background .2s; }
.sh-nav a:hover, .sh-nav a[aria-current] { background: rgba(201,162,74,.22); }
.sh-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-content: center; gap: 5px; padding: 0; cursor: pointer; }
.sh-btn span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: var(--sh-ink); transition: transform .4s cubic-bezier(.7,0,.2,1); }
.sh-open .sh-btn span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.sh-open .sh-btn span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }
.sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* room under the fixed header, on top of whatever padding the page's first block already has */
.sh-space { height: 72px; }
@media (max-width: 800px) { .sh-nav { display: none; } .sh-top { padding-top: 12px; } .sh-space { height: 60px; } }

/* ── menu ── */
.sh-menu { position: fixed; inset: 0; z-index: 40; display: grid; align-content: center; padding: var(--sh-pad); color: var(--sh-ink);
  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;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.7,0,.2,1); visibility: hidden; }
.sh-open .sh-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.sh-menu::before { content: ""; position: absolute; inset: 14px; border: 1.5px solid transparent; border-radius: 22px; pointer-events: none;
  background: var(--sh-bevel) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.sh-menu ul { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.sh-menu ul a { font: 800 clamp(44px, 9vw, 130px)/.95 "Inter Tight", sans-serif; letter-spacing: -.035em; color: var(--sh-ink); text-decoration: none;
  display: inline-flex; align-items: flex-start; gap: 18px; transition: color .3s, opacity .3s; }
.sh-menu ul a i { font: 700 13px var(--sh-mono); font-style: normal; letter-spacing: .12em; color: #a9782c; margin-top: 1.2em; }
.sh-menu ul:hover a { opacity: .38; }
.sh-menu ul a:hover { opacity: 1; color: #8a5f1c; }
.sh-foot { position: absolute; left: var(--sh-pad); bottom: var(--sh-pad); margin: 0; }
.sh-cta { display: inline-block; font: 700 13px var(--sh-mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--sh-ink); 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: sh-shine 5s linear infinite; transition: transform .2s; }
.sh-cta:hover { animation-duration: 2s; transform: translateY(-1px); }
.sh-open, .sh-open body { overflow: hidden; }
