/* cypherstudio.ca · site layer (18 Nov 2026): the homepage rules from the work mock (work-options/grid.css), without the work section. */

/* the typeface's wordmark: the lockup redrawn as the mark plus live type, so the scrolled nav's crop follows its width */
.nav[data-mark="mark"].scrolled .brand-full[data-live]{clip-path:inset(-2px var(--clipr,78%) -2px -2px);}

/* his headline: his lines are the breaks, in any layout */
.after .af-h[data-ed] .af-intro,.after .af-h[data-ed] .af-ln{display:block;}
.after .af-h[data-ed]{max-width:calc(100vw - var(--pad-l) - var(--pad-r)) !important;}

/* the nav CTA's layer: a zero-height sticky twin of the nav (margins set from the nav in site.js), so nothing moves */
.nav-cl{position:sticky; z-index:21; height:0; border-top:1px solid transparent; pointer-events:none;}
.nav-cl[hidden]{display:none;}
.nav-cl-in{position:absolute; left:0; right:0; display:flex; justify-content:flex-end; align-items:center;}
.nav-cl .nav-r{pointer-events:auto;}
/* Blur + invert: the twin drops under the nav and carries only the CTA-sized glass pane */
.nav-cl[data-m="both"]{z-index:19;}
.nav-pane{position:absolute; pointer-events:none;}
.nav-pane[hidden]{display:none;}

/* phones: the light disc with the calendar icon, carrying its own contrast; a bigger header logo */
.cta .cta-ic{display:none;}
@media (max-width:639px){
  .nav-r .cta:not([data-mob="desktop"]){width:44px; height:44px; min-height:44px; padding:0 !important; gap:0; justify-content:center; border-radius:50% !important;
    border:1px solid transparent; -webkit-backdrop-filter:none !important; backdrop-filter:none !important; background:none; transition:transform .18s ease;}
  .nav-r .cta:not([data-mob="desktop"]) > span:not(.cta-ic){display:none !important;}
  .nav-r .cta:not([data-mob="desktop"])::before,.nav-r .cta:not([data-mob="desktop"])::after{display:none !important;}
  .nav-r .cta:not([data-mob="desktop"]) .cta-ic{display:flex; align-items:center; justify-content:center; width:21px; height:21px;}
  .nav-r .cta:not([data-mob="desktop"]) .cta-ic svg{width:100%; height:100%; display:block;}
  .nav-r .cta:not([data-mob="desktop"]):active{transform:scale(.93);}
  .nav-r .cta[data-mob="light"]{background:#F5F5F0 !important; color:#141412 !important; border-color:transparent !important; box-shadow:0 2px 14px rgba(0,0,0,.3);}
  .brand-full{height:calc(1.07rem * var(--nav-scale) * var(--lg-m,1.25)) !important;}
}
