/*
  Loomwest navigation standard on the studio engine:
  a hamburger that opens a slide-in panel of pill links, plus pill navigation across the top of every page.
  Desktop: hamburger and panel on the LEFT. Phones (and any width where the top pills stop showing): on the RIGHT,
  by CSS order only, so keyboard and screen-reader order never change.
  Also: native scrolling (data-scroll="native" on <body>) and Rav's corners (cards and frames 8 px, pills round).
*/
.native-scroll body { overflow: auto; overflow-x: clip; }
.native-scroll .ms-content { position: relative; transform: none !important; overflow-x: clip; }
.native-scroll .ms-spacer { display: none; }
html.menu-open { overflow: hidden; }

.hdr { display: none; }
.nhdr { position: fixed; top: 0; left: 0; right: 0; z-index: 21; height: 96px; padding: 0 40px; display: flex; align-items: center; gap: 18px;
  pointer-events: none; color: var(--ink); transition: color .45s var(--e1), height .35s var(--e1); }
.nhdr > * { pointer-events: all; }
.nhdr__logo { order: 1; display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
.nhdr__logo svg { flex: none; }
.navbtn { order: 0; position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--char); color: var(--paper); flex: none;
  transition: transform .35s var(--e1), background-color .45s var(--e1); }
.navbtn span { position: absolute; left: 13px; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }
.navbtn span:nth-child(1) { top: 15px; } .navbtn span:nth-child(2) { top: 21px; width: 13px; } .navbtn span:nth-child(3) { top: 27px; }
@media (hover: hover) { .navbtn:hover { transform: scale(1.08); } }
.pills { order: 2; margin-left: auto; display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(244, 241, 236, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.pills a { display: block; padding: 9px 15px; border-radius: 999px; font-family: var(--f-ui); font-weight: 500; font-size: 14px; line-height: 18px; letter-spacing: .01em; color: var(--ink); transition: background-color .3s var(--e1), color .3s var(--e1); }
.pills a:hover { background: rgba(0, 0, 0, .06); }
.pills a[aria-current="page"] { background: var(--char); color: var(--paper); }
.nhdr__cta { order: 3; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: #fff;
  font-family: var(--f-ui); font-weight: 600; font-size: 14px; letter-spacing: .02em; white-space: nowrap; transition: background-color .45s var(--e1); }
.nhdr__cta:hover { background: var(--accent-d); }
[data-theme="black"] .nhdr, [data-theme="red"] .nhdr { color: var(--paper); }
[data-theme="black"] .pills, [data-theme="red"] .pills { background: rgba(20, 20, 20, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
/* the header's bar (Andre 2026-10-12: the logo and pills sat straight on photos and headlines once a page moved): clear at
   the very top, then a light bar, or a dark one over dark sections, once html.is-scrolled is set by motion.js */
.nhdr::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08); transition: opacity .35s var(--e1), background-color .45s var(--e1); }
.is-scrolled .nhdr::before { opacity: 1; }
[data-theme="black"] .nhdr::before, [data-theme="red"] .nhdr::before { background: color-mix(in srgb, var(--char, #1f211e) 94%, transparent); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.is-scrolled .nhdr { height: 78px; }
[data-theme="black"] .pills a, [data-theme="red"] .pills a { color: var(--paper); }
[data-theme="black"] .pills a:hover, [data-theme="red"] .pills a:hover { background: rgba(255, 255, 255, .12); }
[data-theme="black"] .pills a[aria-current="page"], [data-theme="red"] .pills a[aria-current="page"] { background: var(--paper); color: var(--ink); }
[data-theme="black"] .navbtn, [data-theme="red"] .navbtn { background: var(--paper); color: var(--ink); }
@media (max-width: 1160px) {
  .pills { display: none; }
  .nhdr__logo { order: 0; }
  .nhdr__cta { order: 1; margin-left: auto; }
  .navbtn { order: 2; }
}
@media (max-width: 768px) {
  .nhdr { height: 76px; padding: 0 20px; gap: 12px; }
  .nhdr__logo { font-size: 18px; }
  .nhdr__cta { padding: 0 16px; font-size: 13px; }
}
@media (max-width: 400px) { .nhdr__cta { display: none; } .navbtn { margin-left: auto; } }
/* the phone Call pill (a site that sets Site(call=...)): on phones it takes the CTA's place, so a tap-to-call is always on
   screen; desktop and tablet keep the CTA and the pills */
.nhdr__call { display: none; }
@media (max-width: 768px) {
  .has-call .nhdr__cta { display: none; }
  .nhdr__call { order: 1; margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
    background: var(--accent); color: #fff; font-family: var(--f-ui); font-weight: 600; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
  .has-call .navbtn { margin-left: 0; }
}

.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(20, 20, 18, .45); opacity: 0; pointer-events: none; transition: opacity .45s var(--e1); touch-action: none; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.panel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 31; width: min(360px, 86vw); padding: 24px 22px 32px; background: var(--paper); color: var(--ink);
  transform: translateX(-103%); visibility: hidden; transition: transform .55s var(--e3), visibility 0s linear .55s; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; }
.panel.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.panel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.panel__x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; flex: none; }
.panel__x::before, .panel__x::after { content: ""; position: absolute; left: 12px; top: 21px; width: 18px; height: 2px; background: currentColor; transform: rotate(45deg); }
.panel__x::after { transform: rotate(-45deg); }
.panel__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin: 18px 0 10px; }
.panel__pills { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.panel__pills a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--f-head); font-weight: 600; font-size: 19px; opacity: 0; transform: translateX(-10px); transition: opacity .45s var(--e1), transform .45s var(--e1), background-color .25s; }
.panel__pills a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.panel__pills a[aria-current="page"] { background: var(--char); color: var(--paper); border-color: var(--char); }
.panel.is-open .panel__pills a { opacity: 1; transform: none; }
.panel.is-open .panel__pills li:nth-child(2) a { transition-delay: 50ms; } .panel.is-open .panel__pills li:nth-child(3) a { transition-delay: 100ms; }
.panel.is-open .panel__pills li:nth-child(4) a { transition-delay: 150ms; } .panel.is-open .panel__pills li:nth-child(5) a { transition-delay: 200ms; }
.panel.is-open .panel__pills li:nth-child(6) a { transition-delay: 250ms; } .panel.is-open .panel__pills li:nth-child(7) a { transition-delay: 300ms; }
.panel__reach { margin-top: auto; padding-top: 28px; font-size: 16px; line-height: 26px; }
.panel__reach a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1160px) {
  .panel { left: auto; right: 0; transform: translateX(103%); }
  .panel__pills a { transform: translateX(10px); }
}

/* Rav's corners: frames and cards 8 px, pills and round buttons stay round */
.reveal__in, .dimg, .wipe, .carousel__now, .carousel__next, .head-img__img > .ph, .head-img__img > img, .quotes__key .reveal__in,
.svc-key__img, .sf-key__img, .acard .reveal__in, .post-share span, .frame { border-radius: 8px; }
.dimg::after, .reveal__in::after { border-radius: 8px; }
.ph.has-img { position: relative; background: var(--fog); }
.ph.has-img::after { display: none; }
.ph.has-img > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* frames that size themselves from a padding box keep their picture layered on top */
.dimg .ph.has-img, .post-bg .ph.has-img { position: absolute; inset: 0; }

/* Cards respond (Andre 2026-10-12: click a picture to zoom or interact with the card). Project and journal cards are
   links: on hover or keyboard focus the photo lifts in light and the title takes a fine underline; a press settles them.
   Light, not transform, because the reveal motion owns the picture's transform. Photos that are not links open in the
   shared lightbox (js/lightbox.js + css/lightbox.css from tools/lwkit). */
.pcard .ph, .acard .ph { transition: filter .5s var(--e1); }
.pcard:hover .ph, .pcard:focus-visible .ph, .acard a:hover .ph, .acard a:focus-visible .ph { filter: brightness(1.07) contrast(1.03); }
.pcard:hover .pcard__title, .pcard:focus-visible .pcard__title, .acard a:hover .acard__title, .acard a:focus-visible .acard__title {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.pcard:focus-visible, .acard a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.pcard:active, .acard a:active { opacity: .88; }
@media (prefers-reduced-motion: reduce) { .pcard .ph, .acard .ph { transition: none; } }
