/* No lines. Loaded last on every page.
   Ella's rule: no rules, hairlines, dividers, underlines or outlined boxes anywhere on the site.
   Separation comes from space, tone and fills. Keyboard focus rings are kept for accessibility. */

/* Every border becomes invisible (kept transparent so nothing shifts) */
*,
*::before,
*::after {
  border-color: transparent !important;
}

/* Lines drawn with pseudo-elements or thin bars */
.sec__rule,
.xhair,
.nav__progress,
.pre__bar,
.nav__link::after,
.alink::before,
.alink::after,
.badge__photo::before,
.badge__photo::after,
.cs__frame::before,
.cs__frame::after,
.cs__svc li::before,
.pg__sign::before,
.pg__sign::after,
.pc__addr {
  display: none !important;
}
a,
.alink,
.sindex__item:hover .sindex__name,
.sindex__item:focus-visible .sindex__name {
  text-decoration: none !important;
}
.sindex__item:focus-visible,
#s05 .scard.drag {
  outline: none;
}

/* Buttons that were only an outline get a solid fill so they still read as buttons */
.nav__badge {
  background: transparent !important;
  color: #FFFFFF !important;
  padding-inline: 0 !important;
}
.nav__badge:hover {
  opacity: .7;
}
.pill,
.ev-arrow,
.wf__btn,
.pg__btn,
.drawer__mail,
#beliefNext.alink {
  background-color: rgba(255, 255, 255, .08) !important;
}
.pill:hover,
.ev-arrow:hover,
.wf__btn:hover,
.pg__btn:hover,
#beliefNext.alink:hover {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}

/* Checkboxes in the work filters still need a visible box: a filled square instead of an outline */
.wf__opt input {
  background: rgba(255, 255, 255, .14) !important;
}
.wf__opt input:checked {
  background: #FFFFFF !important;
}

/* No hairline under the nav: the scroll-progress bar is hidden */
.nav__progress { display: none !important; }

/* The nav fade is painted once, never repeated into its 1px border (that repeat was the hairline under the nav) */
.nav { background-repeat: no-repeat !important; background-origin: border-box !important; border-color: transparent !important; }
/* Over the light programs field the nav drops its dark fade and turns dark */
html.px-light .nav { background-image: none !important; color: #1a1a1a; }
html.px-light .nav .nav__burger span, html.px-light .nav .nav__burger i { background: #1a1a1a; }
html.px-light .nav a, html.px-light .nav .nav__link, html.px-light .nav__right * { color: #1a1a1a !important; }

/* Contact in the top bar: on hover a white box rises behind it and the word turns black */
.nav__badge::before { display: block !important; background: #fff !important; }
.nav__badge:hover { opacity: 1 !important; color: #000 !important; }
.nav__badge:hover::before { transform: none; }


/* Returning from a case study: the page waits at the saved spot, then fades in (js/return.js) */
html.ev-returning body { opacity: 0; }
html.ev-returned body { animation: ev-return-in .5s ease both; }
@keyframes ev-return-in { from { opacity: 0; } to { opacity: 1; } }
/* Moving between pages of the site cross-fades instead of flashing black (supporting browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }
/* Arriving straight on a case study: the Work page stays out of sight until the case layer is up */
html.arrive-case .page { visibility: hidden; }

/* Menu: a panel that opens from the right, where the menu button is, instead of covering the whole screen.
   The page behind dims; tapping it closes the menu. */
.drawer {
  inset: 0 0 0 auto !important;
  width: min(420px, 86vw) !important;
  max-width: none !important;
  box-sizing: border-box;
  text-align: right;
  transform: translateX(28px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.22, .61, .36, 1), visibility .5s step-end !important;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0);
}
.drawer.open {
  transform: none;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55);
  transition: opacity .5s ease, transform .6s cubic-bezier(.22, .61, .36, 1), box-shadow .5s ease, visibility 0s !important;
}
.drawer > div:first-child a { flex-direction: row-reverse; justify-content: flex-start; }
.drawer__foot { justify-items: end; justify-content: flex-end; text-align: right; }
.drawer__soc { justify-content: flex-end; }
.drawer__foot a { justify-content: flex-end; }
.drawer__mail { background: none !important; }
.nav__burger, .nav__burger:focus { outline: none !important; border: 0 !important; box-shadow: none !important; }
.nav__burger:focus-visible { outline: 1px solid currentColor !important; outline-offset: 4px; }

/* Menu background: dark on the right behind the links, fading to fully transparent on the left; no dimmed page */
.drawer {
  width: min(640px, 100vw) !important;
  background: linear-gradient(to left, #000 0%, #000 42%, rgba(0, 0, 0, .82) 62%, rgba(0, 0, 0, .4) 82%, rgba(0, 0, 0, 0) 100%) !important;
  box-shadow: none !important;
}
.drawer.open { box-shadow: none !important; }
.nav__burger:focus-visible { outline: none !important; }

/* Menu foot: the email small and plain, the four social links in one neat right-aligned column */
.drawer__foot { display: grid !important; justify-items: end; gap: 10px !important; }
.drawer__mail { font-size: 17px !important; border-bottom: 0 !important; padding: 0 0 6px !important; min-height: 0 !important; }
.drawer__soc { display: grid !important; justify-items: end; gap: 8px !important; }
.drawer__soc a, .drawer__foot > a:not(.drawer__mail) { min-height: 0 !important; padding: 0 !important; font-size: 11px !important; letter-spacing: .12em !important; }
.drawer__foot .sys, .drawer__foot span { font-size: 10.5px; }
